Select an exclusive CHECK BOX

Hi All,
I have a check box in a multi record block.
How do I see that only one box is checked ( ie one record is selected).
It should also get de selected so that some other can be checked.
Thanks
Uma

I'd use a control block item or non-database item in amaster block, or variable in a package spec, to record which (if any) record in the block had it set. Maintain the variable whenever the checkbox is changed.
Then you don't have to worry about trying to renavigate all the records in a block looking for it.

Similar Messages

  • Trying to select the Calendar check box in iCloud window and then it asks me If I want to merge I hit ok and the it tries to ad see spinning fan icon and then just quits and is then unchecked.  Does Anyone have a solution to fix this?

    Trying to select the Calendar check box in iCloud window and then it asks me If I want to merge I hit ok and the it tries to ad see spinning fan icon and then just quits and is then unchecked.  Does Anyone have a solution to fix this?  It works just fine on all other 5 Macs I have.  I have tried to sign out and in and even restart the computer.  I am running Yosemite on all 6 of my Macs.

    Search the web or help doco about the Captivate feature called Return to Quiz.  It will do what you are looking for here according to your description.  There's even a Youtube video from a year or two back that shows how it works.

  • ALV GRID-how to select all the check boxes using push button

    Hai All,
    I displayed ALV grid & every record contains one check box as first column.
    If user clicks on one push button all the check boxes needs to selected.
    Could any one tell me how to do this?
    Regards,
    Bhaskar

    Hi Bhaskar,
       Try this code :
    *" Table declarations...................................................
    TABLES :
      spfli.                              " Flight Schedule
    *" Data declarations...................................................
    Work variables                                                      *
    DATA :
      w_checkbox  TYPE c,                  " Check Box
      w_checkbox1 TYPE c,                  " Check Box
      w_lineno    LIKE sy-lilli,           " Current Line No
      w_lines     TYPE i.                  " No. Of Records in Int.Table
    Internal table to hold Flight Schedule data                         *
    DATA :
       t_spfli LIKE
      STANDARD TABLE
            OF spfli.
    Structure to hold Function Codes                                    *
    DATA :
      fs_fcode LIKE LINE OF t_fcode.
                          TOP-OF-PAGE EVENT                             *
    TOP-OF-PAGE.
      PERFORM top_of_page.
                       START-OF-SELECTION EVENT                         *
    START-OF-SELECTION.
      PERFORM fetch_spfli_data.
      SET PF-STATUS 'YMENU1'.
      DESCRIBE TABLE t_spfli LINES w_lines.
      fs_fcode = 'EXIT'.
      APPEND fs_fcode TO t_fcode.
      fs_fcode = 'SELECT'.
      APPEND fs_fcode TO t_fcode.
      fs_fcode = 'DESELECT'.
      APPEND fs_fcode TO t_fcode.
      fs_fcode = 'RETRIEVE'.
      APPEND fs_fcode TO t_fcode.
                        AT USER-COMMAND EVENT                           *
    AT USER-COMMAND.
      PERFORM user_command.
    FORM top_of_page .
      WRITE :/50 'Flight Schedule Information'(008).
      ULINE.
      FORMAT COLOR 1.
      WRITE :/10 'Carrier ID'(001),
              25 'Connection ID'(002) ,
              43 'Airport From'(003),
              59 'Airport To'(004),
              74 'Departure Time'(007),
              93 'Arrival Time'(011),
             106 space.
    ENDFORM.                               " FORM TOP_OF_PAGE
    FORM fetch_spfli_data .
      SELECT carrid                        " Carrier ID
             connid                        " Connection ID
             airpfrom                      " Airport From
             airpto                        " Airport To
             deptime                       " Departure Time
             arrtime                       " Arrival Time
        FROM spfli
        INTO CORRESPONDING FIELDS OF
       TABLE t_spfli.
      IF sy-subrc EQ 0.
        PERFORM display_spfli_data.
      ENDIF.                               " IF SY-SUBRC EQ 0
    ENDFORM.                               " FORM FETCH_SPFLI_DATA
    FORM display_spfli_data .
      SORT t_spfli BY carrid ASCENDING.
      LOOP AT t_spfli INTO spfli.
        FORMAT COLOR 2.
        WRITE :/2 w_checkbox AS CHECKBOX,
                  spfli-carrid   UNDER text-001,
                  spfli-connid   UNDER text-002,
                  spfli-airpfrom UNDER text-003,
                  spfli-airpto   UNDER text-004,
                  spfli-deptime  UNDER text-007,
                  spfli-arrtime  UNDER text-011.
      ENDLOOP.                             " LOOP AT T_SPFLI...
    ENDFORM.                               " FORM DISPLAY_SPFLI_DATA
    FORM user_command .
      CASE sy-ucomm.
        WHEN 'SELECT'.
          w_checkbox1 = 'X'.
          DO w_lines TIMES.
            w_lineno = sy-index + 3.
            READ LINE w_lineno FIELD VALUE w_checkbox.
            IF w_checkbox = '*'.
              CONTINUE.
            ELSE.
              MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
            ENDIF.                         " IF W_CHECKBOX = '*'
          ENDDO.                           " DO W_LINES TIMES.
        WHEN 'DESELECT'.
          w_checkbox1 = ' '.
          DO w_lines TIMES.
            w_lineno = sy-index + 3.
            READ LINE w_lineno.
            IF w_checkbox = '*'.
              CONTINUE.
            ELSE.
              MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
            ENDIF.                         " IF W_CHECKBOX = '*'
          ENDDO.                           " DO W_LINES TIMES.
        WHEN 'RETRIEVE'.
          w_checkbox = ' '.
          DO w_lines TIMES.
            w_lineno = sy-index + 3.
            READ LINE w_lineno FIELD VALUE w_checkbox INTO w_checkbox.
            IF w_checkbox = 'X'.
              PERFORM fetch_sflight_data.
              PERFORM display_sflight_data.
            ENDIF.                         " IF W_CHECKBOX = 'X'
          ENDDO.                           " DO W_LINES TIMES.
      ENDCASE.                             " CASE SY-UCOMM
    ENDFORM.                               " FORM USER_COMMAND
    This report gives you the SPFLI Data and places a check box in front of each record. When u click on select all button it will select all the records. And if you click on deselect all it will deselect all the records. When you are trying this maintain the pf-status 'YMENU1' and give the function codes as in the code.
    Regards,
    Swapna.

  • How to set a signature field as 'Required' with selection of a Check Box

    I have a set of 3 check boxes and would like to set a unique combination of pre-existing signature fields as 'required' for each respective check box.
    Given Check Box names of Box1, Box2, Box3 and Signature Field names of Sig1, Sig2, Sig3, can someone provide example JavaScript for setting Sig1 and Sig3 as required upon a Mouse Up of Box 1?
    Otherwise, can someone let me know if this might be more trouble than it's worth?
    Thanks!

    Sorry to keep you waiting Greenstead - and thank you for responding.
    My need for this feature, however, has passed.
    I do have another question or two, but will post as a separate thread.
    Thanks again

  • Linking a library to a list - filtering data per selected drop down / check box item

    Good day,
    I am rather new to SharePoint and have run into a dilemma. Is it possible to link a library to a list, then create a parent-child relationship between the the department (list) to document (library)? 
    Example - I have a library that contains 100+ documents, the library is filtered using groups/subgroups. 
    IT
     -> IT TX (30 docs)
     -> IT WI (10 docs)
    Biz Ops 
     -> Biz Ops WI (8 docs)
     -> Biz Ops CA (5 docs)
    In the list I created I have departments as a required field, and a dropdown tool that shows the 5 departments that contain items that need to be grouped together. (Biz Ops, IT, HR, Sales, and Compliance)
    I have linked the library of documents to the form (list), using "Lookup (information already on this site)". All the documents in the library appear in the selection box within the list. However is it possible to first select a department which
    then filters documents only tied to said department? So at the beginning of the list you choose the department you wish to browse the documents, then it filters out all documents not related to that department? 
    My apologies if this is long winded and confusing. Your help is most appreciative. 
    Cheers. 

    Hi,
    According to your post, my understanding is that you wanted to filter the corresponding documents from a Document Library when you selected a department in a List.
    I recommend that you can follow the steps as below to implement it in your environment.
    1. Create a new Web Part Page and add the Document Library and the List web part into it.
    2. Click the List web part, click the current web part’s drop-down arrow, choose Connections, Send Row of Data To, and then choose the Document Library web part.
    3. Click the Document Library web part, choose the “All Items” view from the Selected View, click the current web part’s drop-down arrow, choose Connections, Get Filter Values From,
    and then choose the List web part.
    4. Open the Configure Connection – Webpage Dialog, choose the “Department” column from the Provider Field Name drop-down list and choose the “Group” column from the Consumer Field
    Name drop-down list.
    5. Click Apply, OK button, save the Web Part Page and test it in your environment.
    For more information, you can refer to:
    http://office.microsoft.com/en-us/sharepoint-server-help/connect-data-in-web-parts-HA101785157.aspx
    http://www.dummies.com/how-to/content/connect-web-parts-in-sharepoint-2010.html
    Best Regards,
    Linda Li
    TechNet Community Support

  • Select-Options and check box on Selection Screen

    Hi Guru's,
    I have to develop a webdynpro report(static). I have a combination of select options and checkboxes on the selection screen. Can you please help me how to design this static selection screen.
    Thanks,
    Pradeep

    Hi Pradeep,
    WDP ABAP does not directly provide the selection screen options as in ABAP programming.
    You can achieve the selection screen functionality using the WDR_SELECT_OPTIONS component usage. Go through the WDP component WDR_TEST_SELECT_OPTIONS.
    Regards
    Wenonah

  • How to select the output list check boxes

    Hi ABAP gurus,
       I am developing the on report, it display the output list, in that output list first column is Check box,
    here i created the 3 Pushbuttons on application tool bar,  one pushbutton is SELECT ALL, 2nd one is DESELECT ALL , 3rd one is CREDIT NOT CREATE,
    here when i click on the Select all button it will select all the check boxs and click on the credit not button  it will create credit memos for all the customers,  if i select the one or more than one check boxs, it will not working means (Credit note will not be created for that paricular customer)
    plz tell me answer, if u know the any example programs related to this program plz send me.

    Hi,
    refer this sample code.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'F2'.
          PERFORM selection.
        WHEN 'SELECTALL'.
          PERFORM selectall.
        WHEN 'DESELECTAL'.
          PERFORM deselectall.
      ENDCASE.                             " CASE SY-UCOMM
    *&      Form  selection                                                *
          Selecting records of basic list and display flight information *
          No parameters transferred                                      *
    FORM selection .
      DO w_lines TIMES.
        READ LINE w_lineno FIELD VALUE w_checkbox INTO w_checkbox
                                    fs_spfli-carrid INTO fs_spfli-carrid
                                    fs_spfli-connid INTO fs_spfli-connid
                                    w_mark INTO w_mark.
        IF sy-subrc EQ 0.
          IF w_checkbox EQ 'X' AND w_mark NE '*'.
            w_mark = '*'.
            MODIFY CURRENT LINE FIELD VALUE w_mark
                                FIELD FORMAT w_checkbox INPUT OFF.
            SELECT carrid                  " Airline Code
                   connid                  " Flight Connection Number
                   fldate                  " Flight date
                   seatsmax                " Maximum capacity
                   seatsocc                " Occupied seats
              FROM sflight
              INTO CORRESPONDING FIELDS OF TABLE t_sflight
              WHERE carrid EQ fs_spfli-carrid AND connid EQ fs_spfli-connid.
            IF sy-subrc EQ 0.
              LOOP AT t_sflight INTO fs_sflight.
                WRITE :/2 fs_sflight-carrid,
                       10 fs_sflight-fldate,
                       25 fs_sflight-seatsmax,
                       45 fs_sflight-seatsocc.
              ENDLOOP.                     " LOOP AT T_SFLIGHT INTO....
              ULINE.
              CLEAR t_sflight.
            ELSE.
              MESSAGE text-001 TYPE 'S'.
            ENDIF.                         " IF SY-SUBRC EQ 0
          ENDIF.                           " IF W_CHECKBOX EQ 'X' AND .....
        ENDIF.                             " IF SY-SUBRC EQ 0
        ADD 1 TO w_lineno.
        CLEAR w_checkbox.
      ENDDO.                               " DO W_LINES TIMES
      w_lineno = 3.
    ENDFORM.                               " Selection

  • How to print check box in ALV list display and how to pick selected ones

    Hi
    i am displaying one ALV list dispaly. for that im adding one check box fields by filling the fieldcat as below:
      wa_fldcat-checkbox = 'X'.
      wa_fldcat-edit = 'X'.
    but the check box is showing disable mode only. i want to display that check box and if i select that check box i want pick that records. for ALV grid i found one FM to pick records of selectedones as below.
    DATA ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF ref_grid IS NOT INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
    but how can i do for list display to pick those selected one records.
    Can any one sugget regarding this.
    Thanks in advance.
    Rahul.

    Hi,
    Thanks. now it's enabled. but how can we pick the records from that list whichever i selected through that check box.
    i found this one for ALV grid:
    DATA ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF ref_grid IS NOT INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
    but how for ALV normal list display.
    Thanks.
    rahul

  • Select all check box at some time

    Hi all,
    I have a search display .jsp page, which have some checked box, allow the users to check the box and download data from database, righr now the use need to checked the checked the box one by one,
    bu tthey want to add other button, which allow them to select all the checked box by click the box, not ideal how to handle.
    any advise

    Hi ,
    thank you for the reply,
    I finally have time to finish this part
    the code is <script language="JavaScript" type="text/javascript">
    function checkAll(field)
    for (i = 0; i < field.length; i++)
    field.checked = true ;
    function uncheckAll(field)
    for (i = 0; i < field.length; i++)
    field[i].checked = false ;
    <input type="button" name="b1" value="Check All" onClick="checkAll(document.form1.mybox)">
    <input type="button" name="b12" value="Uncheck All" onClick="uncheckAll(document.form1.mybox)">
    </form>
    </script>

  • How to get the sum of selected check boxes?

    I have created this simple form with several fields. Fields can be selected via a check-box and they have a price listed.
    I would like to have the sum of each selected product, added in total.
    You can check it out here: https://www.dropbox.com/s/wl1bqz4fa0vlrsk/Student%20Form.pdf
    Help.. anyone?

    it's me again..
    here's a solution: http://forums.adobe.com/thread/929801

  • Check Box Selection Questions

    Is it possible to make a selection with a check box, and then have it select a predetermined selection from a drop down menu?
    e.g. If I select "Los Angeles" from a series of office locations in my check boxes, can it automatically select an address from a drop down selection for that Los Angeles Office?
    Thanks for any help in advance
    Aaron

    Notice that this line
    request.getParameterValues("build1");
    is getting the value of the check box. The "checked" attribute is not the value, just the attribute.
    Oddly enough, I just wrote some code to do this today.
    First, add this little javascript method to your page.
    <SCRIPT language="JavaScript"> <!--  //Hide contents from older browsers
    function setHiddenTagFromCheckbox(checkbox, element) {
      if(checkbox.checked) {
        element.value="yes";  
      else {
        element.value="no";  
    // End hiding the contents -->
    </SCRIPT> 2) Add a hidden input field for each checkbox field.
    <input type="HIDDEN" name="prin2signhidden" value = "no">3) Add an onclick handler for the check box
    <input type=checkbox name="prin2sign" onclick="setHiddenTagFromCheckbox(document.formname.prin2sign, document.formname.prin2signhidden)">In your servlet check the value of prin2signhidden instead of the checkbox input.
    The forum is doing odd things to this source code. Any place you see a > you should actually have a "greater than" sign.

  • Selecting (checking boxes) within Library in iTunes

    Is there a quick way to select or deselect (checking boxes) within your library (or specific playlist) as a means to control the items that you want to move to the ipod? Usually in a similar environment, you have an option to select all of the boxes and check them or the reverse in an attempt to control selection.
    Can anyone help? Apple(corp) suggested this support forum.
    Thanks (in advance)
    David

    Make a selection by clicking on the first track and shift-clicking on the last one for consecutive tracks or command-click on ones that are non-contiguous (you can combine these techniques). Then control-click on the selection and choose "Check (Unselect) Selection".

  • Delete the rows if the check box is selected.

    Dear all,
    i have a block (not database block). i added a check box to the same block. now i want to delete the row against which the check box is selected.
    i wrote the following code in when-button-pressed trigger.
    IF Checkbox_Checked('CHK_DEL') THEN
         delete from fa_01_11
         where as_id = :as_id;
    END IF;
    commit;
    but when i select only one check box it delete the all rows from the table if the condition is satisfied.
    here is the data in my table
    as_id year month
    63     2006     4     0     -1183.92     1
    63     2006     5     0     -1183.92     1
    63     2006     6     0     -1183.92     1
    63     2006     7     0     -1183.92     1
    63     2006     8     0     -1183.92     1
    63     2006     9     0     -1183.92     1
    63     2006     10     0     -1183.92     1
    63     2006     11     0     -1183.92     1
    63     2006     12     0     -1183.92     1
    what's the proble?
    Regards:
    Muhammad Nadeem
    Message was edited by:
    Muhammad Nadeem

    You need to run the code for each record and you need to find something which is unique. as_id is not unique.
    untested:
    declare
      last_rec boolean := false;
      deleted boolean := false;
    begin
      first_record;
      loop
        deleted := false;
        last_rec := :system.last_record = 'TRUE';
        IF Checkbox_Checked('CHK_DEL') THEN
          delete from fa_01_11
            where as_id = :as_id
            and year = :year
            and month = :month;
          clear_record;
          deleted := true;
        END IF;
        exit when last_rec;
        if not deleted then
          next_record;
        end if;
      end loop;
      commit;
    end;

  • Uncheck one check box when we select other check boxes

    Hi All,
    This might be very simple question for experts. I just want to unselect one check box (this check box is to select 'ALL' and this will be selected by default) when we select any other check box (for individual categories) on same region. Can any one please suggest me how to implement this?
    Thanks in advance.
    Regards,
    Hari

    Hi Shijesh,
    Thanks for you reply.
    I'm using two items (check boxs), like P1_ALL and P1_TEST. I want to unselect P1_ALL when we select P1_TEST check box.Both the check boxes contains single value in List of values. For this I wrote script like
    <script type="text/javascript">
    function uncheckAll(pthis)
    elm = document.getElementsByName('P1_ALL');
    if(pthis.checked)
    elm.checked = false;
    </script>
    And in HTML form element attribute of P1_TEST, I have 'onclick=uncheckAll(this)'. But for some reason when I select 'P1_TEST', P1_ALL check box not getting un-selected.
    I would be grateful if you suggest what needs to correct in this one.
    Regards,
    Hari

  • Select all check box in interactve report

    Hi,
      I am writing an interactive report. The second screen will display the check box for thye user to select the items.
    Now the requrement is to create an option like select all means it should select all the check boxes.
    How can I create this option of select all.
    Thanks.

    Hi,
    Please check this example.
    <
    REPORT  Z_TEST NO STANDARD PAGE HEADING.
    DATA: t_flag TYPE STANDARD TABLE OF xfeld,
          s_flag TYPE xfeld.
    START-OF-SELECTION.
      DO 10 TIMES.
        WRITE:/ s_flag AS CHECKBOX,
               sy-index.
        APPEND s_flag TO t_flag.
        HIDE s_flag.
      ENDDO.
    AT LINE-SELECTION.
      LOOP AT t_flag INTO s_flag.
        s_flag = 'X'.
        MODIFY LINE sy-tabix LINE VALUE FROM s_flag.
      ENDLOOP.
    Thanks
    Naren

Maybe you are looking for

  • Pull down to refresh

    I wonder if the pull down to refresh will make it from iOS to Lion, I find myself doing it all the time is Lion Safari and Mail and it seems like a natural feature to add.

  • Unable To Update blackberry z10 os to 10.2 from 10.0.10.82!!

    Hello! I purchased new blackberry z10 2 days before. And I have software version 10.0.10.82 installed on my z10. And I was trying to update to update it to 10.2 from yesterday but was unable to do it. I tried all three methods available, (on the web,

  • Many-to-Many mapping is not working as expected

    I have two tables USERS(PK: User Id) and TEAMS(PK is Team Id. We have an intermediate table MEMBERSHIP that has two columns (User Id, Team Id) and maintains the relation between Users and Teams. When we add team A to user ' B' the table(MEMBERSHIP) i

  • Hello Everybody....I want to about SAP Basis Module

    I want to know about SAP Basis Module....Please tell me about SAP Basis Module.. Edited by: Yogeshmtech on Dec 28, 2011 5:13 PM

  • BM 3.9 sp2 or NW 6.5.8 problems?

    I have run into two problems with the BM 3.9 sp2 installation that I need to fix ASAP. Problem 1: We have several users that VPN into partner offices with ipsec / L2TP connections. These worked up until the time we installed service pack 8 for NetWar