Multiple selection in interactive reports

hi,
how can we do multiple selection in interactive reports using check box?
my first list will have a list of account numbers along with the check box. if few check boxes are clicked then the other fields from the table for the checked account numbers . kindly help me with this.

Hi,
REPORT zbcd .
data : BEGIN OF ITAB OCCURS 0,
        VAR1(4) TYPE C,
        VAR2(4) TYPE c,
       END OF ITAB,
       LINE1 TYPE I,
       VAR3(4) TYPE C,
       VAR4(4) TYPE C,
       FLAG TYPE C,
       CURRENT TYPE I.
data : BEGIN OF WA OCCURS 0,
       XYZ(100) TYPE C,
       END OF WA.
MOVE: '1234' TO ITAB-VAR1,
      'ABCD' TO ITAB-VAR2.
APPEND ITAB.
MOVE: '5678' TO ITAB-VAR1,
      'EFGH' TO ITAB-VAR2.
APPEND ITAB.
MOVE: '9999' TO ITAB-VAR1,
      'IJKL' TO ITAB-VAR2.
APPEND ITAB.
SET PF-STATUS 'BUTTONS'.
*HERE PF-STATUS CONSIST OF PUSHBUTTON WITH USERCOMNAD 'DISP'.
LOOP AT ITAB.
WRITE: / FLAG AS CHECKBOX, ITAB-VAR1, ITAB-VAR2.
ENDLOOP.
DESCRIBE TABLE ITAB LINES LINE1.
REFRESH ITAB.
CLEAR ITAB.
CURRENT = 0.
CLEAR: VAR3, VAR4.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'DISP'.
DO LINE1 TIMES.
CURRENT = SY-INDEX + 2.
READ LINE CURRENT LINE VALUE INTO wa.
IF wa-XYZ(1) EQ 'X'.
  WRITE: wa-XYZ+2(4) TO VAR3,
         wa-XYZ+7(4) TO VAR4.
  WRITE: VAR3 TO ITAB-VAR1,
         VAR4 TO ITAB-VAR2.
  APPEND ITAB.
ENDIF.
ENDDO.
ENDCASE.
THEN U SECONDARY LIST VALUE SELECTION TAKES PLACE
SELECT * FROM MARA INTO TABLE ITMARA FOR ALL ENTRIES IN ITAB WHERE MATNR = ITAB-MATNR.
LOOP AT ITMARA.
WRITE:-----FIELDS TO BE DISPLAY IN OTHER LIST...
ENDLOOP.
*NOTE :-1.PLEASE EXECUTE ABOVE PROGRAM WITH OUT CHANGES IN DEBUG MODE TO CLEARLY UNDERSTAND. 
2.ALSO U CAN MOVE ABOVE ITAB REQUIRED FIELD VALUES INTO ONE OF INTERNAL TABLE(BY LOOPING) WHICH IS LIKE SELECTOPTIONS MARA-MATNR(ie TB_MATNR) AND USE*
(AND INSTEAD OF VAR1 AND VAR3 U CAN PLACE THE MATNR)
SELECT * FROM MARA INTO TABLE ITMARA WHERE MATNR IN TB_MATNR.*
Edited by: Vijay Mekala on Feb 1, 2008 5:16 PM

Similar Messages

  • How to create multiple selection screens in reports

    How to create multiple selection screens in reports
    Thanks,
    Sridhar

    Ex: hope you will find an idea from the below example :
    SELECTION-SCREEN BEGIN OF BLOCK SEL1 WITH FRAME TITLE TIT1.
    PARAMETERS: CITYFR LIKE SPFLI-CITYFORM,
                CITYTO LIKE SPFLI-CITYFORM.
    SELECTION-SCREEN end OF BLOCK SEL1
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
    SELECTION-SCREEN INCLUDE BLOCKS SEL1.
    SELECTION-SCREEN BEGIN OF BLOCK SEL2 WITH FRAME TITLE TIT2 .
    PARAMETERS: AIRPFFR LIKE SPFLI-AIRPFROM,
                AIRPTO LIKE SPFLI-AIRPTO.
    SELECTION-SCREEN END OF BLOCK SEL2
    SELECTION-SCREEN END OF SCREEN 5000.
    INITIALIZATION.
    TIT1 = 'ITIES'.
    aT SELECTION-SCREEN.
    CASE SY-DYNNR.
    WHEN '0500'.
       MESSAGE W159(at) WITH 'SCREEN 500'.
    WHEN '1000'.
       MESSAGE W159(at) WITH 'SCREEN 1000'.
    ENDCASE.
    START-OF-SELECTION.
    TIT1 = 'CITIES FOR AIRPORTS'.
    TIT2 = 'AIRPORTS'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    TIT1 = 'CITIES AGAIN'.
    CALL SELECTION-SCREEN 1000 STARTING AT 10 10.

  • Multiple Queries on Interactive Report

    hi all,
    Can i run multiple queries based on some condition in creating an interactive report?? I mean
    i want to run a single query as
    if :P12_QUERY == 1 then
    first query
    else if :P12_QUERY == 2 then
    second query
    end if;
    Please provide me the syntax if its possible. Plz help me in this regard.
    With Regards,
    Sunil Bhatia

    Hello,
    You will need to create a pipeline function and use it in your query. But both your queries have to return the same dataset.
    Example:
    function choose_query(v_query_type integer) return some_type pipelined
    is
    v_query varchar2(4000);
    v_cur sys_refcursor;
    v_row some_type;
    begin
    if :P12_QUERY == 1 then
    v_query := 'select ....';
    else if :P12_QUERY == 2 then
    v_query := 'select ....';
    end if;
    open v_cur for v_query;
    loop
    v_row := some_type(null, null, null);
    fetch v_cur into v_row;
    exit when v_cur%notfound;
    pipe row (v_row);
    end loop;
    close v_cur;
    end;In interactive report you have to set query:
    select * from table(choose_query(:P12_QUERY ))
    Best Regards, Kostya Proskudin

  • Display Button depending on selected saved interactive report

    Hi all,
    I have two saved public views of my interactive report. Now I want to show Button 1, when View 1 is shown and Button 2 only when View 2 is shown.
    Is there a possibility to get this working???
    Thanks
    chrissy
    Edited by: chrissy2 on 06.09.2012 12:17

    this seems to be a way to get this working ... but what happens in translated applications? I don't know if we can translate "Public Report Names"? Do they appear in translation file?
    I think I will fetch the value of the selected item, which should be the internal report id and search database for the report alias of this report id.Yes, I confirm that option value of select list are same as report_id. You can get the report_id using following query.
    select report_id, report_name, report_alias from APEX_APPLICATION_PAGE_IR_RPT where application_id = <app_id>and page_id = <page_id> and status = 'PUBLIC'<li>When we use same application id for DEV and PROD, then report_id value didn't changed. You may check how this behaves with different application ids.
    <li>Also I think, report_alias stays as constant irrespective of workspace or application_id. Its my guess. :)
    Please update how it goes.
    Regards,
    Hari

  • Multiple rows in interactive reports?

    Can we click on multiple rows at a time in interactive reports??
    If yes how.....
    Would reward.
    thanks

    alchemi,
        u can use that one by using the  hide stmt on the desired two fields.
    And in the first secondary list, u can put a if condition for the hided fields. so that if the condition is satisfied u can process a set of commands else process the other block of commands.
    Regards...
    Arun.
    Reward points if useful.

  • Listbox with multiple selection in interactive forms

    Hello experts.
    I'd like to use a listbox in my form with enabled multiple selection.
    The form is part of a WebDynpro ABAP Application.
    Reading the context to get the content of the form fields works fine as long as I don't use a list box where
    multiple selection is enabled.
    When I use the box I only get the values of all other fields, but not the selected values of the box.
    My context node for the pdf looks like this:
    - *Node for PDF*  (Cardinality 1..1; Selection 0..1)
    -- Attribute 1
    -- Attribute2
    -- Node for Listbox (Cardinality 0..n; Selection 0..n)
    --- Attribute for Listbox
    Please help!
    Regards
    Frank
    Edited by: Frank Mueller on Feb 6, 2008 10:31 AM

    Hi,
    is there really nobody who knows, how to give more when one selected item of a list box back to ABAP?
    Please help!
    Regards
    Frank

  • SQL multiple selects in one report?

    Hello,
    I'm having a problem selecting from the following table (let's call it the dpt_user_role) to be able to create a custom report,
    The table looks like the following:
    Dpt_id User_id User_is_manager
    1 1001 N
    1 1002 Y
    1 1003 N
    2 1001 Y
    2 1005 N
    2 1006 N
    3 1001 Y
    3 1007 N
    3 1008 N
    I would like to build a custom query to fit in just one report that would give me the following results for user_id 1001
    Dept_id User_id User_is_manager
    2 1001 Y
    2 1005 N
    2 1006 N
    ------ (line from the custom report template separating dpts) ------
    3 1001 Y
    3 1007 N
    3 1008 N
    As you can see I need to select all the depts where user_id :PX_USER is a manager but also the non manager users in that report.
    Any help pointing me in the right direction will be greatly appreciated and sorry for the inconvenience.
    Thanks.
    Best regards,
    NJ

    Hello,
    Thank you for your fast answers and for helping.
    The result of the query returns,
    2 1001 Manager
    2 1005 Non-Manager
    2 1006 Non-Manager
    ------ (line from the custom report template separating dpts) ------
    3 1001 Manager
    3 1007 Non-Manager
    3 1008 Non-Manager
    But I really need something like
    Dept_id Manager User_is_manager
    2 1001 Y
    Dept_id Non-Manager User_is_manager
    2 1005 N
    2 1006 N
    ------ (line from the custom report template separating dpts) ------
    Dept_id Manager User_is_manager
    3 1001 Y
    Dept_id Non-Manager User_is_manager
    3 1007 N
    3 1008 N
    So I could pass the results to the custom report like
    [begin of template report]
    Manager of Dept #Dept_id# is #Manager#
    Non managers users are #Non-Manager#
    ------ (line from the custom report template separating dpts) ------
    [end of template report]
    And the report would go to Dept_id = 3 and so on. I would have to perform an inner join of some sort to get the Manager and Non-Manager users first and last names from a different table.
    Is this all possible in a single query or am I in hyperspace here?
    May the good winds of fortune keep blowing your way and inspiring you.
    Thank you!
    Best regards,
    NJ

  • Multiple selection screens for report

    I need to display 2 separate selection screens prior to executing the report.
    1. A selection screen to enter the material & plant
    2. Based on the material and plan another selection screen to display the inspection characteristics associated with the material and be able to select (as checkbox) the inspection characteristic that needs to be used as filtering criteria.
    The first selection screen I can do. But how do I invoke the second selection screen that displays the insp. char. Also how do I design such a selection screen and populate the contents
    I would like something like
    [CheckBox] Inspection Plan Inspection Characteristic [Editable upper limit] [Ediatable Lower Limit]
    But other ideas to implement this are welcome as well.

    Megan,
    Say thanks to SDN.No need to give points to this.
    TABLES:EBAN.
    SELECTION-SCREEN BEGIN OF SCREEN 100 TITLE title.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER:rad1 RADIOBUTTON GROUP rad USER-COMMAND frad1 DEFAULT 'X',
              rad2 RADIOBUTTON GROUP rad .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    PARAMETER: mtr AS CHECKBOX MODIF ID g3 USER-COMMAND chk1,
               p_matnr TYPE eban-matnr MODIF ID g1,
               sloc AS CHECKBOX MODIF ID g3 USER-COMMAND chk2,
               str_loc TYPE eban-lgort MODIF ID g4.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    SELECT-OPTIONS: matnr1 FOR eban-matnr MODIF ID g2.
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN PUSHBUTTON /20(10) name USER-COMMAND UCOM.
    SELECTION-SCREEN END OF SCREEN 100.
    *name = 'FETCH'.
    title = 'Test Report'.
    CALL SELECTION-SCREEN '100'.
    TYPE-POOLS slis.
    AT SELECTION-SCREEN OUTPUT.
      IF rad1 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G1' OR screen-group1 = 'G4'.
            screen-active = '1'.
            screen-input = 0.
          ELSEIF screen-group1 = 'G2'.
            screen-active = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSEIF rad2 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G1'  OR screen-group1 = 'G4' OR screen-group1 = 'G3' OR screen-group1 = 'G5'.
            screen-active = '0'.
          ELSEIF screen-group1 = 'G2'.
            screen-active = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF mtr = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G1'.
            screen-input = 1 .
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF sloc = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G4'.
            screen-input = 1 .
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    clear sy-ucomm.
      iflag = 1.
    K.Kiran.

  • How can I select 2 options in Interactive reports

    Hi Friends
    I have a doubt about Interactive reports/ ALV interactive reports. Is there any option to select multiple selections in interactive reports. If I am displaying in a screen CustNo, Name, Country.
    I want to see order details of that customer in another screen using AT Line-Selection. Can I select multiple customer nos at a time and also can I see those order details whom I selected over in first list.
    Please send me reply ASAP if there is any option with suitable example.
    Thanks
    Praveen.

    Check out this sample.  It uses two ALV grids.  On the first one you can do multiple selection, hit the continue buttons and it will throw another ALV with those material/plant records.  Implement the following program.  Create screen 100 and 200.  One each screen create a custom container called ALV_CONTAINER(screen 100) and ALV_CONTAINER2(screen 200).  Create the gui status for both.  Don't forget to create a "CONTINUE" button on the gui-status 100.
    report zrich_0006.
    tables: mara.
    type-pools: slis, icon.
    * Internal Tables
    data: begin of ialv occurs 0,
          matnr type mara-matnr,
          maktx type makt-maktx,
          end of ialv .
    data: begin of ialv2 occurs 0,
          matnr type mara-matnr,
          werks type marc-werks,
          end of ialv2.
    * Miscellanous Variables
    data: index_rows type lvc_t_row,
          index like line of index_rows.
    data: alv_container type ref to cl_gui_custom_container,
          alv_container2 type ref to cl_gui_custom_container,
          alv_grid type ref to cl_gui_alv_grid,
          alv_grid2 type ref to cl_gui_alv_grid,
          row_table type lvc_t_row with header line,
          ok_code like sy-ucomm,
          layout  type lvc_s_layo,
          fieldcat type lvc_t_fcat,
          fieldcat2 type lvc_t_fcat.
    select-options: s_matnr for mara-matnr.
    start-of-selection.
      select mara~matnr makt~maktx
                 into corresponding fields of table ialv
                     from mara
                          inner join makt
                             on mara~matnr = makt~matnr
                                    where mara~matnr in s_matnr
                                      and makt~spras = sy-langu.
      sort ialv ascending by matnr.
      call screen 100.
    *      Module  status_0100  OUTPUT
    module status_0100 output.
      set pf-status '0100'.
      set titlebar '0100'.
      data: lt_exclude type ui_functions.
    * Create Controls
      create object alv_container
             exporting container_name = 'ALV_CONTAINER'.
      create object alv_grid
             exporting  i_parent =  alv_container.
    *  Populate Field Catalog
      perform get_fieldcatalog.
    * Optionally restrict generic functions to 'change only'.
    * (The user shall not be able to add new lines).
      perform exclude_tb_functions changing lt_exclude.
    * Set selection mode to "D"  --  Multiple Lines
      layout-sel_mode = 'D'.
      call method alv_grid->set_table_for_first_display
          exporting
               is_layout              = layout
               it_toolbar_excluding   = lt_exclude
               i_structure_name       = 'IALV'
          changing
               it_outtab       = ialv[]
               it_fieldcatalog = fieldcat[].
    endmodule.
    *      Module  USER_COMMAND_0100  INPUT
    module user_command_0100 input.
      case sy-ucomm.
        when 'BACK' or 'CANC'.
          perform free_containers.
          if sy-subrc = 0.
            set screen 0.
            leave screen.
          else.
            leave program.
          endif.
        when 'EXIT'.
          perform free_containers.
          leave program.
        when 'CONTINUE'.
    * Retrieve selected rows from ALV grid
      clear index_rows.  refresh index_rows.
      call method alv_grid->get_selected_rows
               importing
                     et_index_rows = index_rows.
    * Do something with those selected rows here
          loop at index_rows into index.
            read table ialv index index-index.
            if sy-subrc = 0.
              select * appending corresponding fields of table ialv2
                           from marc
                               where matnr = ialv-matnr.
            endif.
          endloop.
          perform free_containers.
          leave to screen 200.
      endcase.
    endmodule.
    *      Form  FREE_CONTAINERS
    form free_containers.
      if not alv_container is initial.
        call method alv_container->free.
        clear: alv_container.
        free : alv_container.
      endif.
      if not alv_container2 is initial.
        call method alv_container2->free.
        clear: alv_container2.
        free : alv_container2.
      endif.
    endform.
    *      Form  Get_Fieldcatalog - Set Up Columns/Headers
    form get_fieldcatalog.
      data: ls_fcat type lvc_s_fcat.
      data: columnno(3) type n value '0'.
      refresh: fieldcat.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-coltext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'IALV'.
      ls_fcat-outputlen  = '18'.
      ls_fcat-col_pos    = 1.
      append ls_fcat to fieldcat.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Description'.
      ls_fcat-coltext    = 'Material Description'.
      ls_fcat-fieldname  = 'MATKX'.
      ls_fcat-ref_table  = 'IALV'.
      ls_fcat-outputlen  = '40'.
      ls_fcat-col_pos    = 2.
      append ls_fcat to fieldcat.
    endform.
    *      Form  Get_Fieldcatalog2 - Set Up Columns/Headers
    form get_fieldcatalog2.
      data: ls_fcat type lvc_s_fcat.
      data: columnno(3) type n value '0'.
      refresh: fieldcat2.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-coltext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'IALV2'.
      ls_fcat-outputlen  = '18'.
      ls_fcat-col_pos    = 1.
      append ls_fcat to fieldcat2.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Plant'.
      ls_fcat-coltext    = 'Plant'.
      ls_fcat-fieldname  = 'WERKS'.
      ls_fcat-ref_table  = 'IALV2'.
      ls_fcat-outputlen  = '4'.
      ls_fcat-col_pos    = 2.
      append ls_fcat to fieldcat2.
    endform.
    *      Form  EXCLUDE_TB_FUNCTIONS
    form exclude_tb_functions changing pt_exclude type ui_functions.
    * Only allow to change data not to create new entries (exclude
    * generic functions).
      data ls_exclude type ui_func.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
      append ls_exclude to pt_exclude.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
      append ls_exclude to pt_exclude.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
      append ls_exclude to pt_exclude.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
      append ls_exclude to pt_exclude.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.
      append ls_exclude to pt_exclude.
    endform.
    *      Module  status_0200  OUTPUT
    module status_0200 output.
      set pf-status '0200'.
      set titlebar '0200'.
    * Create Controls
      create object alv_container2
             exporting container_name = 'ALV_CONTAINER2'.
      create object alv_grid2
             exporting  i_parent =  alv_container2.
    *  Populate Field Catalog
      perform get_fieldcatalog2.
      call method alv_grid2->set_table_for_first_display
          changing
               it_outtab       = ialv2[]
               it_fieldcatalog = fieldcat2[].
    endmodule.
    *      Module  USER_COMMAND_0200  INPUT
    module user_command_0200 input.
      case sy-ucomm.
        when 'BACK' or 'CANC'.
          perform free_containers.
          if sy-subrc = 0.
            set screen 0.
            leave screen.
          else.
            leave program.
          endif.
        when 'EXIT'.
          perform free_containers.
          leave program.
      endcase.
    endmodule.
    Regards,
    Rich Heilman

  • Hide multiple selection of parameter related to Standard Report Category.

    Hi,
    I have created the report program with the logical database PNPCE , report category HRF_PNOC having PNPPERNR in the selection screen With Multiple selection. I want to hide the multiple selection button  for this PNPPERNR in the selection screen.
    For example: we hide the multiple selection button in report program with the no-extension. The syntax for no-extension is shown below 
    select-options : p_kunnr for kna1-kunnr no-extension.
    Can any one help me out of this?
    Thank You,
    Swetha.C
    Edited by: Swetha Chevuru on Oct 28, 2011 12:22 PM

    Hi,
    Please see the below blog for detailed description of the problem that i am facing now
    http://swethacblog.blogspot.com/2011/10/how-to-hide-multiple-selection-button.html#!/2011/10/how-to-hide-multiple-selection-button.html
    Thank You,
    Swetha.C

  • Multiple selection for report

    we need multiple selection for the report about the RMA - bill to location ID, we would like to select by service order , currently is there no field for selection, in search-term we have to enter our code. it does not work if we enter the service order.
    thanks for help

    we need multiple selection for the report about the RMA - bill to location ID, we would like to select by service order , currently is there no field for selection, in search-term we have to enter our code. it does not work if we enter the service order.
    thanks for help

  • Users Email Subscriptions of Interactive Reports, getting deleted

    Hi,
    We have apex 4.0.2 version instances installed in DEV, Test, Prod environments.
    We use the same app id across all the 3 environments
    eg: App no 200 is used in all the 3 environments.
    The users subscriptions for the interactive reports are getting deleted,
    when the App from Dev is moved to Test or Prod environments.
    Any ideas or suggestions ?
    Thnx

    Hi,
    I could able to get back the users subscriptions in the target environment with below procedure.
    In my scenariou i am moving the app 200 from Dev to Test environment.
    Step1: Export the app 200 from Test environment by selecting Export interactive Report Subscriptions to Yes in Export Preferences tab
    Step2: Extract carefully the wwv_flow_api.create_worksheet_notify code +(you will see more than 1 statements, if there are multiple users subscriptions)+ from the app 200.sql .
    Step3: Extract wwv_flow.g_flow_id and wwv_flow_api.g_id_offset initializer statements.
    Example below:
    In my scenariou i was testing with 1 interactive report user subscription
    begin
    wwv_flow.g_flow_id := nvl(wwv_flow_application_install.get_application_id,200);
    wwv_flow_api.g_id_offset := nvl(wwv_flow_application_install.get_offset,0);
    wwv_flow_api.create_worksheet_notify (
    p_id => 3351032625694541+wwv_flow_api.g_id_offset,
    p_flow_id => wwv_flow.g_flow_id,
    p_worksheet_id => 11045125897667191+wwv_flow_api.g_id_offset,
    p_report_id => 11046318922668871+wwv_flow_api.g_id_offset,
    p_owner => 'abc.def',
    p_email_subject => 'Primary Report test',
    p_email_address => '[email protected]',
    p_start_date => '2012.09.07.01:00:00',
    p_notify_interval => 'D');
    end;
    Step4: Import the app 200 from Development environment to Testing environment.
    Step5: Execute the above Example pl/sql in the Test environment sql prompt.
    Run the app in Test environment, You will see your interactive reports user subscription to the associated pages.
    Note: This procedure applies only when you have  app id same across all the enviornments

  • CASE statement (or similar functionality) in interactive report?

    Hello,
    I've written a report based on an anonymous block of PL/SQL that allows me to show a different colored icon on the report based on the value of one of the columns - show green if value is less than x, show yellow if value is between x and y, and show red if value is greater than y.
    Here is the code block:
    for i in (select proj_id, proj_name,
    CASE
    WHEN proj_cost < 10 THEN '<img src="#APP_IMAGES#green-circle.jpg">'
    WHEN proj_cost > 10 and proj_cost <15 THEN '<img src="#APP_IMAGES#yellow-circle.jpg">'
    WHEN proj_cost > 15 THEN '<img src="#APP_IMAGES#red-circle.jpg">'
    ELSE NULL
    END proj_cost
    from project)
    loop
    htp.p('<p>' || i.proj_id || ', ' || i.proj_name || i.proj_cost ||'</p>');
    end loop;
    Can I do something similar with an interactive report? I want the flexibility of the interactive report but the ability to still include this customer requirement in the report.
    Thanks!
    -melissa

    Hi,
    You can use your select as interactive report region source
    select proj_id,
    proj_name,
    CASE
    WHEN proj_cost < 10 THEN '<img src="#APP_IMAGES#green-circle.jpg">'
    WHEN proj_cost > 10 and proj_cost <15 THEN '<img src="#APP_IMAGES#yellow-circle.jpg">'
    WHEN proj_cost > 15 THEN '<img src="#APP_IMAGES#red-circle.jpg">'
    ELSE NULL
    END proj_cost
    from projecIt should work fine
    Just make sure that column where is image type is "Standard report column".
    If it is "Display as text" it will not show HTML
    Br,JAri
    Edited by: jarola on Mar 16, 2010 4:18 PM
    for substitution sting APP_IMAGES you need probably use &APP_IMAGES. instead of #APP_IMAGES#
    Other vise it should be fine

  • Get Report_Id of Interactive Report

    I am atempting to get the report id of the currently selected report in a specific page.
    The problem is that here are several diferent views (SAVED REPORT) and i don't how how to get the currently selected in the session.
    How can I do that?
    Thanks
    Pedro

    The report is selected using the interactive report tabs from the previous saved reports.
    I have been trying this:
    Javascript & 'apexir_REPORT_ID'
    but it fails because the value is always the same, the based_report_id of the Working directory, not the selected tab (interactive report save).
    Any thougths??

  • Interactive report - Function returning SQL query

    i notice that it is not possible to create an interactive report based on a function call. can anyone shed any light on why this is?
    also, is there a work around possible? i really dont want to store my SQL query inside a page in the application

    Craig,
    I tried the collection workaround as well but noticed that it gets incredible slow when data sets grow bigger. Depending on what you need maybe my solution is of help for you:
    I used multiple subpages with interactive reports, an iframe and a javascript function setting the iframe-src on the main page, see my last post on
    interactive report custom GO-Button (-process)
    Paul

Maybe you are looking for

  • Text Caption Dialog window is black-help!

    For some reason, the text caption dialog box window is black. It did not used to be black, but somehow decided it wanted to be black now. This makes is incredibly difficult to view the black text as I attempt to edit it. Anyone else have this problem

  • I am connected to my remote server and "put files" but the web page files do not update, whats going on?

    I really can't figure this out: So I use a different computer at school for web design, I bought Dreamweaver to work on it at home, I get the files fine from the server that I uploaded at school but then I make changes at home computer and connect an

  • Problem on startup

    My husband has a 3000 n200 laptop which always starts up in lenovo care before Windows boots up.  is there any way we can stop it doing this? jiffyrat

  • Drives disappear between UEFI and Linux

    This problem has me stumped for a month, so I'm hoping someone can shed some light on this. Originally, I had an MSI motherboard with BIOS only, GRUB2 booting Arch and Windows 7, no problems whatsoever. I upgraded to an Asus motherboard with UEFI, an

  • How to view olk14 messages that are not opened by outlook offline

    My problem is with olk14 messages that can not be opened by outlook offline. I have been following previous post and explanations, namely rebuild the Microsoft Database User identity but with no sucess.