How to use Parameter in inline view

I want to deploye following sql in discoveror. Problem is that how to use the P_TO_DATE in disco.
select papf.employee_number, papf.effective_start_date, papf.effective_end_date, paaf.effective_start_date, paaf.effective_end_date,
(select peev.screen_entry_value
from pay_element_types_f pet,
pay_element_classifications pec,
pay_input_values_f piv,
pay_element_entries_f pee,
pay_element_entry_values_f peev
where pet.classification_id = pec.classification_id
and pet.processing_type = 'R'
and pec.classification_name = 'Earnings'
and piv.name in ('Monthly Amount')
and pet.ELEMENT_TYPE_ID = piv.ELEMENT_TYPE_ID
and pet.element_type_id = pee.element_type_id
and piv.INPUT_VALUE_ID = peev.INPUT_VALUE_ID
and pet.ELEMENT_NAME = 'Basic Salary'
and pee.ELEMENT_ENTRY_ID = peev.ELEMENT_ENTRY_ID
and pee.assignment_id = paaf.assignment_id
and pee.effective_start_date <= :P_TO_DATE and pee.effective_end_date >= :P_TO_DATE
and peev.effective_start_date <= :P_TO_DATE and peev.effective_end_date >= :P_TO_DATE ) Basic_Salary
from per_assignments_f paaf, per_people_f papf
where papf.person_id = paaf.person_id
and papf.employee_number = '101111'

Hi,
What you can do is to change the query so that the parameters will be in the where clause and then you can define the condition with the parameter in the dicoverer worksheet.
Use the following code instead of your own:
select papf.employee_number,
papf.effective_start_date,
papf.effective_end_date,
paaf.effective_start_date,
paaf.effective_end_date,
Basic_Salary.p_start_date1, ---> create the conditions on those fields
Basic_Salary.p_start_date2,
Basic_Salary.p_end_date1,
Basic_Salary.p_end_date2
from per_assignments_f paaf,
per_people_f papf,
(select peev.screen_entry_value,
pee.assignment_id,
pee.effective_start_date p_start_date1, --parameter
pee.effective_end_date p_end_date1, --parameter
peev.effective_start_date p_start_date2,--parameter
peev.effective_end_date p_end_date2
from pay_element_types_f pet,
pay_element_classifications pec,
pay_input_values_f piv,
pay_element_entries_f pee,
pay_element_entry_values_f peev
where pet.classification_id = pec.classification_id
and pet.processing_type = 'R'
and pec.classification_name = 'Earnings'
and piv.name in ('Monthly Amount')
and pet.ELEMENT_TYPE_ID = piv.ELEMENT_TYPE_ID
and pet.element_type_id = pee.element_type_id
and piv.INPUT_VALUE_ID = peev.INPUT_VALUE_ID
and pet.ELEMENT_NAME = 'Basic Salary'
and pee.ELEMENT_ENTRY_ID = peev.ELEMENT_ENTRY_ID
) Basic_Salary
where papf.person_id = paaf.person_id
and Basic_Salary.assignment_id = paaf.assignment_id
--and Basic_Salary.p_start_date1 <= :P_TO_DATE
--and Basic_Salary.p_start_date2 <= :P_TO_DATE
--and Basic_Salary.p_end_date1 >= :P_TO_DATE
--and Basic_Salary.p_end_date2 >= :P_TO_DATE
--and papf.employee_number = '101111'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • [Forum FAQ] How to use parameter to control the Expand/Collapse drill-down options in SSRS report?

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

  • Parameter in inline view

    Hi All,
    There is a requirement to change oracle report (rdf) to discoverer. The report query has parameters in inline views which are used as tables (a and b below).
    For example:
    SELECT a.1,a.2,b.1,b.2
    FROM
    ( select 1,2... from c where c.sth=:Parameter1) a
    ,( select 1,2... from d where d.sth between :Parameter2 and :parameter3) b
    Now that, c.sth or d.sth are not available in select clause, How do i apply the parameters from discoverer desktop.
    Also, is there any approach i can follow to solve the same.

    Hi,
    You can use non-mandatory parameters in a condition but if for some reason a non-mandatory parameter is not available then the user will have to enter a dummy value when the parameter is not used. For example, you could add ALL to the list of values and use a condition like DECODE(param:, 'ALL', column, :param) = column. You can then make the parameter mandatory and the users enter ALL if they don't want to use the parameter.
    Hope that helps,
    Rod West

  • How to Use Parameter ID to default the Bank details in Vendor master

    HI,
    Client wants to default the Bank details for his vendor master records which will be created in future.Kindly advice me how to create parameter ID for defaulting the Bank details in vendor master.
    Kindly advice me
    Thanks
    Sunitha

    Hello,
    You have misunderstood the concept of Parameter ID.
    A field can be filled with proposed values from SAP memory using a parameter ID for that particular user. Normally in Finance, you can keep Company Code, Controlling Area etc. can ke kept as default. You find the Parameter tab in User Master Record in SU01.
    I am afraid that you want to populate the bank details in vendor master record. These fields are very critical for all types of payment. You should double make sure that you are entering the correct bank details in the vendor master record. If you do not fill any of these details, your BACS and CHAPS (DME) payments would get failed.
    If your client do not have details of bank information, the same can be filled later by writing a LSMW.
    Thanks,
    Ravi

  • How to use layout of one view(some part) in another view

    Hi All,
                 I need how to use a layout of one view(some part) in another view.if anybody knows, help me.
    Ex : I took two views.but some part of layout in first view is also needed in second view.Is it possible.
    Thank You,
    Anupama.

    Hi,
    Whichever common ui elements you want to put in both views. Keep them in one view.
    Now create two views which You want to display.( i.e you have to create three views in that two only will be used for display purpose ) In that both views add viewcontainer ui element and embedd that view which has common UIs. And Then add rest uncommon UIs in both views.
    I hope it helps.
    Regards,
    Rohit

  • How to use parameter id in report

    dear all
    please solve this problem
    i use parameter id in alv report and i call another report i m unable to pass parameter to another report
    regards
    abhilash

    Hi,
    Here is the example
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    gd_layout-totals_only        = 'X'.
    gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
                                            "click(press f2)
    gd_layout-zebra             = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events
                is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    *&      Form  BUILD_EVENTS
          Build events table
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events[].
      read table gt_events with key name =  slis_ev_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    Regards
    Mudit

  • How to use parameter passed from standard page in VO query of custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .
    And how to use those parameters in the VO query of my custom page.
    Edited by: Bunny on Nov 11, 2010 9:16 AM

    Hi,
    Bunny wrote:
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .---If standard page the button style is :Button,Then u can set Destination URL in personalization.
    Destination UR:"OA.jsp?page=/xxx/oracle/apps/po/msg/webui/CustomUpdatePG&Flag=" +Value  ---Like u can pass params
    ---IF the button style is :Submitbutton ,Then u need to customization of the co.
    ---In co processFormReq call a cutom page like below.
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/po/msg/webui/customUpdatePG&Flag=" +Value, null, (byte)0, null, null, true, "N", (byte)0);
    ---In custom page co in processRequest u can get these value :String value=pageContext.getParameter("Flag");
    And how to use those parameters in the VO query of my custom page.---Get the vo and set where clause
    String where="valueAttr="+value;
    vo.setWhereClauseParams(null);
    vo.setWhereClause(where);
    vo.executeQuery();
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 11, 2010 11:53 PM

  • How to used parameter in example program with visaul basic

    i have some proplem about away to used parameter in visual basic example program for ex. As Status ,As ViSession because it can't complier

    Jone –
    Greetings from National Instruments! I hope you are finding your use of the Developer Exchange discussion forum advantageous. We really believe that this is a great resource for programmers to gather and work with each other, sharing tips and working together to answer questions.
    I am not 100% sure about which specific Visual Basic you are inquiring. However, the NI-VISA User Manual contains many specific Visual Basic examples that I think would greatly help you in these programming pursuits. I would suggest that you take a look at this link (http://digital.ni.com/manuals.nsf/websearch/266526277DFF74F786256ADC0065C50C?OpenDocument&node=132100_US), specifically Appendix A. There you will find many examples, including specific declarations,
    which I think is the point of your entry here.
    I hope that this helps you out! Thanks again for your support of National Instruments and your use of the Developer Exchange!!
    Best Regards,
    Greg Wempe
    Applications Engineer

  • How to use one DC's view/component/appln in another DC

    Hi All,
      I am new to DC concept. I am trying to use one DC's component in another DC. I have done following steps.
    a)Created two DCs A and B
    b) DC A's 'New Public Part-->Entity Type(Web Dynnpro Component) I selected component
    c) Add Used DC in B, I added A's component
    <b> From this point onwards I am not getting any clues</b>. How do I call A's component in DC B. <i>Please guide. Any examples will be great.</i>
    Thanks and Regards,
    Ganga.

    Hi Gangadharaya,
    Just tell me do u want to display a view, use some context or use some methods defined in other controller.
    So that i can help you in the same direction.
    <b>Component Usage</b>
    Suppose you have following scenario:
    1) DC2 has component Comp2. In this dc you read the context a value and stores it in context named "Ctx_value".
    2) DC1 has component Comp1. Here you want to read the Ctx_value from comp2.
    In Comp2 create a method getValue()
      public java.lang.String getProcessId( )
          return wdContext.getCurrentElement().getAttributeValue("Ctx_value");
    In the interface controller of Comp2 click on properties tab and add reference to the cont2 controller. Now create a method here in interface controller to get the value of Ctx_value
      public java.lang.String getValue( )
        return wdThis.wdGetComp2Controller().getValue();
    Expose the Comp2 as public part now.
    In DC1 add DC1 as used DC.
    Build both dc's
    In Comp1 create Component usage by name Comp2Usage to Comp2.
    Now you can access the method getValue() from interface controller of Comp2.
    wdThis.wdGetComp2UsageInterface().getValue();
    This is how you can access a value of Context. Same can be done by direct binding.
    <b>View Access</b>
    If you want to access a view v2 in comp2 then goto windows in comp1 and embedd an existing view and in that select the interface view of comp2. The default view in comp2 can now be displayed in comp1.
    Regards,
    Murtuza
    Message was edited by:
            Murtuza Kharodawala

  • How to use parameter of one web context in another one???

    Hey guys,
    I have a web context which is a servlet
    The other web context is a jsp
    I also have a login page
    In the login page after clicking the submit button the
    control is passed to the servlet.
    The login page passes the username and password
    to the servlet
    i have used doGet() method.
    I simply want to retrieve the parameter present in url of the servlet and use this in the jsp.
    How is this possible??
    To make things clearer , here are the three pages:
    1> Login.html:<HTML>
    {<HEAD>
    <TITLE>
    First Media - DashBoard
    </TITLE>
    </HEAD>
    <BODY>
    <FORM METHOD=GET
    ACTION="http://localhost:8080/Dashboard/Dashboard">//url for servlet
    <IMG SRC="C:\dashboard\Picture1.png"
    ALT="Unable to display picture" ALIGN="LEFT" HEIGHT="150" WIDTH="150">
    <H3>
    <CENTER>
    LOGIN SCREEN
    </CENTER>
    </H3>
    <P></P><P></P>
    <BR><BR><BR><BR><BR>
    <P>
    <H4>
    <CENTER>First Media DashBoard Display</CENTER>
    </H4>
    </P>
    <BR><BR>
    <P>
    <CENTER>
    LOGIN ID ���
    <INPUT TYPE="TEXT" NAME="userid">
    </CENTER>
    </P>
    <BR><BR>
    <P>
    <CENTER>
    PASSWORD ���
    <INPUT TYPE="PASSWORD" NAME="userpass">
    </CENTER>
    </P>
    <BR><BR>
    <INPUT TYPE="SUBMIT" VALUE="SUBMIT">
    </FORM>
    </BODY>
    </HTML>
    Here's the servlet:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    public class Dashboard extends HttpServlet
         public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              res.setContentType("text/html");
    PrintWriter out=res.getWriter();
    out.println("<HTML>");
    out.println("<HEAD><TITLE>FIRST MEDIA DASHBOARD</TITLE></HEAD>");
    out.println("<FRAMESET ROWS=\"20%,80%\">");
    out.println("<FRAME SRC=\"http://localhost:8080/Intro/Intro\">");//this is the url for the jsp
    out.println("<FRAMESET COLS=\"20%,80%\">");
    out.println("<FRAME SRC=\"c:/dashboard/MainNetwork.html\" NAME=\"mainframe\">");
    out.println("<FRAME SRC=\"c:/dashboard/DisplayArea2.html\" NAME=\"displayframe\" SCROLLING=\"NO\">");
    out.println("</FRAMESET>");
    out.println("</FRAMESET>");
    out.println("</HTML>");
    Finally the jsp :
    <HTML>
    HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Hide from tired old browsers
    function multiLoad(doc1,doc2) {
    parent.mainframe.location.href=doc1;
    parent.displayframe.location.href=doc2;
    // -->
    </SCRIPT>
    </HEAD>
    <BODY>
    <IMG SRC="C:\dashboard\Picture1.png"
    ALIGN="LEFT" WIDTH="80" HEIGHT= "80">
    <BR>
    Network Log
    ���������
    Service Levels
    ���������
    <A HREF="# onClick=
    "parent.location='http://localhost:8080/Dashboard/Login.html';
    window.location='C:\dashboard\Login.html';">LogOut
    </A>
    <H3>
    <%
    if (request.getParameter("userid") == null)
         out.println("Welcome to dashboard");
    else { 
    out.println("Hello," + request.getParameter
    ("userid"));
    } %></H3>//code to try to greet the user by name
    </BODY>
    </HTML>
    I know this is a long one, but guys, please help!!!
    Message was edited by:
    alok1983
    Message was edited by:
    alok1983
    Message was edited by:
    alok1983
    Message was edited by:
    alok1983

    If you re-post using the code tags to format the message some one may actually take the time to read it.

  • How to use Device Profiles and Viewing Conditions Profile in Photoshop Elements 11?

    In trying to get to grips with the Colour management aspects of PSE11, I have encountered the following problems:
    Having selected "Display" a sequence of clicks (Change display settings -> Advanced settings -> Colour Management -> Colour Management tab -> Colour Management)
    gives a screen which includes the headings:
    Device Profile  and Viewing Conditions Profile.
    1. Device Profile. Besides sRGB and ARGB, the profile list includes the profiles for all of the Epson papers. (I have an Epson Stylus Photo PX810FW).
    I changed the Profile to an Epson Grayscale, this was accepted within the menu, but there are no changes from normal when I viewed the image on the Windows screen or within
    PSE11. ("normal" is sRGB or ARGB).
    I thought it worth a try to test that, if I wanted the display image to closely represent what I would get on a particular Epson paper, this may be a way to do it.(I suspected this approach because I have never
    seen it in the literature!).
    So what is the purpose of all of the paper Profiles appearing in the Display listing?
    2. The Viewing Conditions Profile has also several options. I have tried to find the criteria for choosing one rather than the other, but failed to find any information. Can anyone help? I seek general guidance
    rather than the details of the Profiles.
    As a seperate question:
    Selecting Image on the PSE11 menu across the top of the displayed image, and then Convert Colour Profile, I tried this process on an image, converting tiff to sRGB. When saved there was an extra asterisk in the saved title but in this case,
    the file was still labelled tiff and there was no change in the number of Mbs. If a conversion has taken place, how is one to know?  Does saving a tiff file as jpeg change its colour profile? When is it useful to use this feature?
    Many thanks to all responders! 

    Addressing your second question, you are confusing two different things.
    tiff is an image file format, as is jpeg, as is psd, as is png, as are dozens (if not hundreds, http://en.wikipedia.org/wiki/Image_file_formats) of other formats.
    A colour profile represents the colour characteristics of devices so that, for example, displays know how to display the colours, printers know how to print them.
    Image files MAY, but do not have to, contain colour profiles.
    For details:
    http://help.adobe.com/en_US/creativesuite/cs/using/WS52323996-D045-437d-BD45-04955E987DFB. html
    http://en.wikipedia.org/wiki/Color_management#Color_profiles
    http://en.wikipedia.org/wiki/ICC_profile
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • How to use WDR_SELECT_OPTIONS in a view without using window embeding

    Hey guys,
    I want to use Select Options (via Comp. WDR_SELECT_OPTIONS ) in a Web Dynpro View - V_SUB. This subview is already embedded in a main view V_MAIN dynamically at runtime. Now it is not possible for me to implement the select option usage in V_SUB correctly because I don't have the window information for embedding at design time.
    Do you know how this problem can be solved? I already tried the window runtime interface: if_wd_rr_window->embed_view like this:
      lr_window_rr->embed_view( used_view_name     = 'WND_SELECTION_SCREEN'
                                used_component_name = 'WDR_SELECT_OPTIONS'
                                COMPONENT_USAGE_NAME = 'USE_SELECT_OPTIONS'
                                embedding_position = 'V_SUB/VC_SELOPT' ).
    "USE_SELECT_OPTIONS" is my usage name for the wd comp. wdr_select_options
    However this didn't work
    Thanks for any advice...
    Regards
    Sebastian

    can be done with prepare_dynamic_navigation( )

  • How to use Parameter from file in window env

    hi All,
    Please tell me the how I can get Parameter from Saved file and can use in other file.
    EX:
    I want to use Password file for each instance like
    ORCL-manager
    ORCL_1-tiger
    ORCL_2-*****
    how to call this file in other file. using pasword for instance
    any help would be appereciated.
    Regards,

    You can use SFTP for this.
    This is a way of implementing SFTP in SSIS using standard tasks 
    http://visakhm.blogspot.in/2012/12/implementing-dynamic-secure-ftp-process.html
    also see
    http://blog.goanywheremft.com/2011/10/20/sftp-ftps-secure-ftp-transfers/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to pass parameter when create view link

    Hi,
    I used R12 to implement OAF. I create a VO with paramenter such as SELECT item_code,parent_item_code,month_budget_id
    FROM cux_ce_month_budget_lines_t
    where month_budget_id=:1
    But when I create VL for this VO. It seems the parameter :1 can not be passed.
    Could some one to help lookinto this?
    Best Regards,
    Eileen

    You donot need to pass parameter while creating the View Link. Once the view link is created then you assign the bind parameter to the master VO and execute the View link. The Child VO would automatically be executed.

  • How to use parameter option in smartform program line.

    HI all,
    how can i give parameter for matnr directly in smartform program line, it wont take gives a dump
    i don wanna create a separate driver program for that.
    Error in the ABAP Application Program
    The current ABAP program "/1BCDWB/SF00000001============FT" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "/1BCDWB/SAPLSF00000001 " in
    include "/1BCDWB/LSF00000001F01 " in
    line 539:
    "You can only use "PARAMETERS" for programs other than type 1 between B"
    "EGIN/END OF SCREEN."
    The include has been created and last changed by:
    Created by: "SAPUSER "
    Last changed by: "SAPUSER "
    how can i solved this.
    Kavinath B.

    Hi,
    You can not code
    SELECTION-SCREEN BEGIN OF BLOCK.
    SELECT-OPTIONS selcrit FOR (name).
    SELECTION-SCREEN END OF BLOCK.
    like this in smartform  program line it wont allow
    all you have to do is create a driver program
    for smartform create a selection screen and call smartform by
    n pass variables or internal tables.
    call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 =
    *     VARIANT                  = ' '
    *     DIRECT_CALL              = ' '
    *   IMPORTING
    *     FM_NAME                  =
    *   EXCEPTIONS
    *     NO_FORM                  = 1
    *     NO_FUNCTION_MODULE       = 2
    *     OTHERS                   = 3
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    I hope it will help u
    Ketan.P

Maybe you are looking for