Report Parameter Check Box

Hi alls,
I have created two check box item in search region of one of my report , i want to restrict user to select either one of the checkbox ,both cannot be unchecked.How can i achieve it ? One more quick question how can i refresh the report data the minute check box changes rather then pressing the button which post the page to refresh,i reckon product build is the version of apex which is 4.1.1.00.23.
Regards
Awais

Hi Awais,
Your details are a bit vague, can both the checkboxes be checked?  Do you have to use checkboxes if they can't both be checked, I would suggest using a radio group instead.
You will then need to use an on-change dynamic action based on your radio group and for the true action refresh your report region.
Thanks
Paul

Similar Messages

  • Logic for a report with check boxes

    Hi All ,
    I m writting a report , I need to put FOUR check box in this report ,
    For example you  can say Check1 ( material1)
                                           Check2 ( material2)
                                           Check3 ( material3)
                                           Others
    In selection critriea I defined one select option ( eg materail )
    Now I have to diplay data accordingly checkboxes
    If Check box '<b>check1'</b> is selected -list must contains only material1
    If Check box '<b>check2'</b> is selected -list must contains only material2
    If Check box '<b>check3</b>' is selected -list must contains only material3
    If Check box '<b>check1</b>' or any other one is  selected -list must contains  material1 and other materail as per other selected check box .
    If Check box<b> others</b> is selected then all other fields ( except the selected check box ) are the out put of this report .
    IF you need more explaination of my query , plz let me know .
    Regards ,
    Narender

    REPORT ZTEST3 line-size 400.
    tables : mara.
    data i_mara like mara occurs 0 with header line.
    data i_marc like marc occurs 0 with header line.
    data i_mcha like mcha occurs 0 with header line.
    data i_mkol like mkol occurs 0 with header line.
    select-options: s_matnr for mara-matnr.
    parameters : p_check1 as checkbox.
    parameters : p_check2 as checkbox.
    parameters : p_check3 as checkbox.
    parameters : p_check4 as checkbox.
    start-of-selection.
    if p_check1 = 'X'.
    select * from mara into table i_mara where matnr in s_matnr.
    loop at i_mara.
    endloop.
    endif.
    if p_check2 = 'X'.
    select * from marc into table i_marc where matnr in s_matnr.
    loop at i_marc.
    endloop.
    endif.
    if p_check3 = 'X'.
    select * from mcha into table i_mcha where matnr in s_matnr.
    loop at i_mcha.
    endloop.
    endif.
    if p_check4 = 'X'.
    select * from mkol into table i_mkol where matnr in s_matnr.
    loop at i_mkol.
    endloop.
    endif.

  • Interactive report with check boxes

    i want to create a report in which there should be check boxes for every record & when i'll check those check boxes it should show me the sublist of the checked records.

    hi,
    try like this
    DATA : BEGIN OF wi_cust OCCURS 0 ,
            kunnr LIKE kna1-kunnr,
            name1 LIKE kna1-name1,
            adrnr LIKE kna1-adrnr,
           END OF wi_cust.
    DATA : BEGIN OF wi_adrc OCCURS 0 ,
            kunnr LIKE kna1-kunnr,
            name1 LIKE adrc-name1,
            city1 LIKE adrc-city1,
           END OF wi_adrc.
    DATA : chk1 TYPE c,
                lines TYPE i,
                 lines1 TYPE i..
    DATA: c TYPE c, ind TYPE c.
    DATA : v_line TYPE sy-index.
    SELECT kunnr name1 adrnr UP TO 10 ROWS FROM kna1 INTO TABLE wi_cust.
    LOOP AT wi_cust .
      WRITE : / chk1 AS CHECKBOX ,sy-vline, wi_cust-kunnr,wi_cust-name1,wi_cust-adrnr.
      HIDE : wi_cust-kunnr, chk1.
    ENDLOOP.
    END-OF-SELECTION.
      lines = sy-linno - 1.
    AT LINE-SELECTION.
      CHECK sy-lsind = 1.
      WINDOW STARTING AT 5 4
      ENDING AT 85 20.
      DO lines TIMES.
        CLEAR chk1.
        READ LINE sy-index FIELD VALUE chk1.
        IF chk1 = 'X'.
          ind = sy-index - 2.
          READ TABLE wi_cust INDEX ind.
          SELECT name1 city1 FROM adrc INTO CORRESPONDING FIELDS OF TABLE wi_adrc
          WHERE addrnumber = wi_cust-adrnr.
          READ TABLE wi_adrc INDEX 1.
          WRITE : / wi_adrc-name1, wi_adrc-city1.
        ENDIF.
      ENDDO.

  • No "Execute Report Immediately" check box for Custom Reports

    I need a report to be executed immediately within a homepage and due to the documentation a check box should be there when defining "My Homepage Custom Report".
    There is not!
    Can anyone be so kind and illuminate me?
    Thanks in advance
    JC
    Edited by: 872161 on 16.08.2011 06:57

    If that option is not appearing for you, contact On Demand Customer Care to have that option enabled.

  • Regarding alv report with check boxes

    Hai,
    i have four check boxes as input named new,rejected,accepted and all.these four four check boxes information is nothing but the information that displayed under one field in my internal table.if i click the new check box means that corresponding
    data has to be display similarly for accepted and rejected .if i click the all check box means all records has to be displayed.now i am facing one problem if i suppose to click all check box with either new or rejected orelse accepted orelse with all the three with all check box means then it wont goes to output instead of that it remains in the same window i.e input screen. pls tell me the solution as soon as possible.
    with regards,
    R.Dhineshraj.

    hi dhinesh,
    one thing...wen ur writing a code for checkboxes ...checck for the following..
    1> for individual check box code...one check box should b selected at a time..
    2> for combination of checkboxes...after end-of-selection event...where u put this condition...give the if-clause with and condition...for all possible conditions of all 4 checkboxes...
    den accordingly...select the form-perform corresponding to the checkbox selection...
    example code..im writing here...for individual assignment...
    PARAMETERS: invoiced AS CHECKBOX.
    PARAMETERS: good_iss AS CHECKBOX.
    END-OF-SELECTION.
      IF invoiced = 'X'.
        PERFORM create_fieldcatalog.
        PERFORM display_data.
      ELSE.
        IFgood_iss = 'X'.
    let me knw if it helps u..
    regards
    kanika

  • Check box in ALV Report

    Hi All,
    I have developed ALV hierarchical report with check boxes for header and item records.
    If i select header checkbox, the corresponding item records checkboxes should be selected automatically, here after selecting header checkbox i have to press some push button(like Refresh) then only item check boxes getting selected,
    but here my req. is without clicking any button item checkboxes should be checked automatically if corresponding header check box is selected.
    If anybody have an idea pls get back to me.
    Regards,
    Ashwin

    Hi,
    Construct a field catalogue as follows:
    DATA: z_fieldcat TYPE slis_fieldcat_alv
    Then set the checkbox related fields fields like:
    z_fieldcat-seltext_l = 'Checkbox'.
    z_fieldcat-checkbox = 'X'. " Display this field as a checkbox
    z_fieldcat-edit = 'X'.    " This option ensures that you can
                                    " edit the checkbox. Else it will
                                    " be protected.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jan 30, 2008 5:35 PM

  • How to disable check box (row selector) in a tabular APEX report

    I have a tabular report with check boxes that gets populated by a SQL query.  For certain rows, I want to disable (or not render) the check box, depending on the value of one of the columns for that particular row (if the value of a column defined as Date is less than sysdate, I don't want to display the check box for that row).  I tried using the Conditional Display in the Column Attribute section of the check box, but I am unable to access this Date column which is being selected from a view in the source SQL.  I used variable such as :name-of_column, V(':name-of_column'), but always get a NULL value for this Date column in the SQL that I am trying to code in the Conditional Display section.  For this reason, my condition does not work correctly.
    What am I doing wrong?  Is my approach above correct?

    Hi Ajay,
    I don't think you can handle this with a conditional display, as that works on column level rather than row level.
    The way I see it, there are two things you can do:
    1) an sql approach, where youo render the checkbox as part of your query using apex_item.checkbox, check the oracle docs for detailed info on the usage APEX_ITEM
    You'll end up with a query like
    select case when YOUR_DATE_COLUMN < sysdate
                      then null
                      else  apex_item.checkbox2( p_idx => 1
                                                               , p_value => YOUR_DATE_COLUMN
    ,      <rest of your query here>
    from YOUR_TABLE
    2) an JavaScript approach in which you create a dynamic action that check your tabular form date column and, when necessary hides and disables the checkbox for that row.
    First option is more robust, but will require a bit more work. Second option is faster to develop, but might have different effect across various browsers and browser versions.
    Regads,
    Vincent
    http://vincentdeelen.blogspot.com

  • Reports - Check Boxes

    Hi All,
    I'm not getting idea how to approach this requirement.
    My requirement is
    I have one report with check box for each record output in the list.
    Here in this report i'll check i.e. put tick mark in the check box, then the checked list of records should be written to the other report.
    Can you please let me know the solution.
    Jeevi.

    report Ztest no standard page heading.
    data: imara type table of mara with header line.
    data: check_box(1) type c,
          report_lines type i.
    start-of-selection.
    * Create the gui status with BACK button in standard place
    * and a READ button in the application toolbar
      set pf-status 'CHECK'.
      select * into corresponding fields of table imara
               from mara up to 100 rows.
      loop at imara.
        write:/ check_box as checkbox, imara-matnr, imara-matkl.
        hide imara-matnr.
      endloop.
      report_lines  = sy-linno - 1.
    top-of-page.
      write: 'List of materials'.
      uline.
    top-of-page during line-selection.
      write:  'Material.....'.
      uline.
    at user-command.
      case sy-ucomm.
        when 'READ'.
          check_box = space.
          set pf-status 'CHECK' excluding 'READ'.
          do report_lines times.
            read line sy-index field value check_box.
            if check_box = 'X'.
              write:/  'You have selected material', imara-matnr.
            endif.
          enddo.
      endcase.
    DEMO_LIST_READ_LINE
    refer this code if u want furtehr help.
    END-OF-SELECTION.
      lines = sy-linno - 1.
    SET PF-STATUS 'ZSTATUS'.
    AT USER-COMMAND.
          wa_output-cb = space.
          SET PF-STATUS 'ZSTATUS' EXCLUDING 'SAVE'.
          DO lines TIMES.
            READ LINE sy-index FIELD VALUE wa_output-cb.
              IF wa_output-cb = 'X'.
            MODIFY i_output  FROM wa_output INDEX sy-tabix TRANSPORTING cb.
            ENDIF.
          ENDDO.
    CASE sy-ucomm.
    WHEN 'SAVE'.
    *      DELETE i_output WHERE cb = 'X'.
       LOOP AT i_output WHERE cb = 'X'.
        MOVE i_output TO i_fina.
       APPEND i_final.
       ENDLOOP.
      ULINE.
      FORMAT INTENSIFIED OFF.
      FORMAT COLOR COL_HEADING.
      WRITE:/001 'CB' ,
             003 'Material No',
             015 'Mat type',
             024 'Mat group'.
      FORMAT COLOR OFF.
      FORMAT INTENSIFIED ON.
      ULINE.
      IF NOT i_output[] IS INITIAL.
        LOOP AT i_output INTO wa_output.
          WRITE:/001 wa_output-cb AS checkbox,
                 003 wa_output-matnr,
                 015 wa_output-mtart,
                 024 wa_output-matkl.
          CLEAR wa_output.
        ENDLOOP.
      ENDIF.
    WHEN 'BACK'.
    LEAVE SCREEN.
    ENDCASE.

  • Check Boxes generated through report

    Hi all,
    I have a report and 'check boxes' against each row. My page works for 'checkall' / 'clearall' options using javascript. My requirement is that i need the all checkboxes to checked by default.
    Any thoughts! Please Help!!!
    Thanks & Regards
    Ranjith

    Try putting 'CHECKED'
    after
    on
    htmldb_item.checkbox(1,empno,'CHECKED')
    Does the trick

  • About Check box Prompt in OBIEE 11g

    Hi All,
    I really wonder about strange behaviour of check box prompt in OBIEE11g.
    I have created a check box prompt and associate it with my report. Now when i tried to view result with select any of check box, report run properly, But when i deselect check box and re run report, the check box automatically select again and result of report filtered.
    Any one have any Idea about this, as this seems a BUG in OBIEE11g...
    Many Thanks.

    Hi Archie,
    Are you saying, when you deselect a prompt and try to run the report, it still selects the prompts from the first selection and filters the same again?
    -Amith.

  • How to Increase the Parameter filter box size

    Hi Experts,
    I want to increase the size of the report parameter filter box. is it possible to increase the size based on the value.
    Any help is appreciated.
    Thanks in Advance,
    Rajan

    Hello Rajan,
    It's not possible to modify the parameter boxes / area.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • "Always Use Selected Format" check box in line items report

    Hi Experts,
    I have an issue in ECC 6.0.
    From the transaction code FBL1N (Vendor Line Items) I am trying to export the report to spreadsheet by selecting the option  List> Export>Spreadsheet  then I have selected "Always Use Selected Format" check box.  But if I execute the same report again I am not getting this option "Always Use Selected Format". Please let me how can we retrieve that option. Is there any possibility to get that option again either functionally or technically. I would like to know all the possible ways to get this option again.
    Please do the needful.

    Hello,
    In one my thread Mr. Frank has replied as follows. I believe he has solved this.
    Hope this may be really helpful.
    The problem with the spreadsheet download is at one point, users have selected their default file type.
    That said, SAPGUI is working as it should. (gui710)
    Question though is how do we reset the values so they get the ?Select Spreadsheet Format? popup again.
    The following steps should be performed :
    - Call transaction SE38, enter program SALV_BS_ADMIN_MAINTAIN, and press F8.
    - Follow the parameters below :
    - Select ?DELETE? on the Actions Group
    - Select ?DETAILED SELECTION? on the General Data :
    - On Client - your number
    - User : <user name>
    -Hit EXECUTE.
    -Press ENTER on the POPUP
    - If there is an entry in the report that will need to be deleted. Also, make sure that the entry you will delete (for the user) has a value of GUI_ALV_XML_VER on field ?Parameter? .
    - Select the line and hit the DELETE icon .
    - Press ?Y? to continue delete. Press ENTER on the popup.
    - Then EXIT all the way out of the program.
    NOTE : When you run program SALV_BS_ADMIN_MAINTAIN, make sure they are out of any program that they are using for download.
    Re: "Always Use Selected Format" check box in line items report
    Regards,
    Ravi
    Edited by: Ravi Sankar Venna on May 15, 2009 2:31 PM

  • Reg check boxes in ALV report

    Hi All,
    I am displaying check boxes in my ALV report.I want to capture what all are the values that has been selected in the basic list ALV accordingly I want to write the code for the secondary ALV list .Could you please suggest somebody how to capture this info?
    Regards
    Ramesh

    hi,
    here is the code...
    i havent checkbox but i have first filed of char type and u can select more than one record by pressing control...
    i have created one button DET in pf status and when i press on that i am getting detain info of selected record in secondary list...
    TABLES:     ekko.
    TYPE-POOLS: slis.                                 "ALV Declarations
    TYPES: BEGIN OF t_ekko,
      sel,                         "stores which row user has selected
      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.
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          fieldcatalog1 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.
    DATA : BEGIN OF det_tab OCCURS 0,
            ebeln LIKE ekpo-ebeln,
           END OF det_tab.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM build_fieldcatalog.
      PERFORM build_layout.
      PERFORM display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
    *       Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.        "Display column total
      fieldcatalog-datatype     = 'CURR'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    ENDFORM.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
    *       Build layout for ALV grid report
    FORM build_layout.
      gd_layout-box_fieldname     = 'SEL'.
      gd_layout-zebra             = 'X'.
    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_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_STAT'
          is_layout                = gd_layout
          it_fieldcat              = fieldcatalog[]
          i_save                   = 'X'
        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 CORRESPONDING FIELDS OF TABLE it_ekko.
    ENDFORM.                    " DATA_RETRIEVAL
    *       FORM USER_COMMAND                                          *
    *       --> R_UCOMM                                                *
    *       --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&IC1'.
          IF rs_selfield-fieldname = 'EBELN'.
            READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
            SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
            CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
          ENDIF.
        WHEN 'DET'.  "user presses SAVE
          CLEAR det_tab.
          REFRESH det_tab.
          LOOP AT it_ekko INTO wa_ekko WHERE sel = 'X'.
            MOVE-CORRESPONDING wa_ekko TO det_tab.
            APPEND det_tab.
          ENDLOOP.
          PERFORM build_cat.
          PERFORM dis_data.
      ENDCASE.
    ENDFORM.                    "user_command
    *&      Form  set_stat
    *       text
    *      -->RT_EXTAB   text
    FORM set_stat USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZSTAT' EXCLUDING rt_extab.
    ENDFORM.                    "set_stat
    *&      Form  build_cat
    *       text
    FORM build_cat.
      CLEAR fieldcatalog1.
      REFRESH fieldcatalog1.
      fieldcatalog1-fieldname = 'EBELN'.
      fieldcatalog1-tabname = 'DET_TAB'.
      fieldcatalog1-seltext_m = 'Order No.'.
      fieldcatalog1-outputlen = 10.
      APPEND fieldcatalog1 TO fieldcatalog1.
      CLEAR fieldcatalog1.
    ENDFORM.                    "build_cat
    *&      Form  dis_data
    *       text
    FORM dis_data.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = 'ZTEST_DS'
          it_fieldcat        = fieldcatalog1[]
          i_save             = 'X'
        TABLES
          t_outtab           = det_tab.
    ENDFORM.                    "dis_data
    reward if usefull....

  • Problem in PRD to display check box parameter on selection screen

    hi ,
            i had one problem, i created one report which will show customer advances, for this report i created one selection screen, i transport req to QAS and PRD it shows fine. after that i need to add one more check box to that report selection screen. i transport reqt to QAS and PRD, in QAS it is woking fine but in PRD i am not able to see the check box which i was enterd. transport was perfect. i am saw the report coding in PRD that has the Check box statement. but it not comming,
    1, why the selection screen is not showing that check box parameter ?
    2, i had 19 selection fields is their any restriction to display the selection screen ?
    please try to solve it for me,
    thanq,
    rajesh.k

    Hello Rajesh,
    First check the Log of your TR. whether it is transported properly without any error or with error.
    again delete your Checkbox statement and write code again then try to transport again.
    there is no any limitation to provide option on selection screen. you can give as per your requirement.
    Regards,
    Sujeet

  • Check Box for each row in report -- all rows deleting when pressing DELETE

    Hello experts! I have set up a report with a check box for each row. When I click the DELETE button to delete the selected rows, every single one of the rows get deleted...even the ones that are not selected. I have my process point set to "On Submit - After computations and validations".
    This is my delete process (SHG is the table and SHG_ID is the primary key):
    FOR i in 1..HTMLDB_APPLICATION.G_F01.count
    LOOP
    DELETE FROM SHG
    WHERE SHG_ID = HTMLDB_APPLICATION.G_F01(i);
    END LOOP;
    Also, I've added to query in the region source this line:
    htmldb_item.checkbox(1, SHG_ID) del,
    Where does the "1" come into this? Not sure what I am doing wrong!
    Message was edited by:
    user477193
    Message was edited by:
    user477193

    The 1 (first argument to all the htmldb_item.* APIs) corresponds to the array number in htmldb_application.g_fNN. So 1 will populate array g_f01, 2 will populate g_f02 and so on.
    Your code seems fine, it should delete only the checked rows. Are you sure there is no other process on the page that might be deleting the rows? See if you can put up an example on htmldb.oracle.com

Maybe you are looking for