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>

Similar Messages

  • How to select One Check Box at a time

    Dear All
    I have 10 records in details blok and also I have 10 check boxes .
    I want user can only check one check box at a time .
    For example If first record I have checked and i am trying to check the last record then the first record UNCHECKED and the last record will checked .
    Like how redio buttons work ..
    How can i do that ..?
    I have done like this :-
    1st I have declare a global variable in PRE_FORM :GLOBAL.CNT := 'N';
    Then
    WHEN-CHECKBOX-CHANGED trigger
    IF CHECKBOX_CHECKED(EMP.CHK') THEN
        IF :GLOBAL.CNT != N THEN
            :EMP.CHK := Null
       HERE what to write ???
            RAISE FORM_TRIGGER_FAILURE;
        ELSE
            :GLOBAL.CNT := Y;
        END IF;
    ELSE
        :GLOBAL.CNT := N;
    END IF;Edited by: LuKKa on Aug 29, 2012 1:12 PM
    Edited by: LuKKa on Aug 29, 2012 1:13 PM

    LuKKa,
    An easier method would be to use a Calculated Field to summarize the value of your CHECKBOX Item. For example, add a non-table item (call it SUM_CHECKED) to your detail block and do not assign it to canvas - so it will not be displayed. Then set the following properties of the SIM_CHECKED item:
    Database Item = No
    Calculation Mode = Summary
    Summary Function = Sum
    Summarized Block = <YOUR DETAIL BLOCK>
    Summarized Item = <YOUR CHECKBOX ITEM>
    Next, you will need to change your Detail Block property Query All Records to YES (this is required for the Calulated Item).
    Now, make sure your checkbox is data type NUMBER and has the following minimum properties set:
    Data Type = Number
    Maximum Length = 1
    Initial Value = 0
    Value when Checked = 1
    Value when Unchecked = 0
    Check Box Mapping of Other Values = Not Allowed or Unchecked
    Now, in your Checkbox Item's When-Checkbox-Changed trigger add code similar to this:
    IF ( CHECKBOX_CHECKED('YOUR_DETAIL_BLOCK.YOUR_CHECKBOX_ITEM') ) THEN
       IF ( :YOUR_DETAIL_BLOCK.SUM_CHECKED > 1 ) THEN
       --Reset the checkbox
       :YOUR_DETAIL_BLOCK.YOUR_CHECKBOX_ITEM := NULL;
       MESSAGE('You can only check one item.');
       Message(' ');
       RAISE Form_Trigger_Failure;
       END IF;
    END IF;I have confirmed this method works and it is more efficient than looping through your records to see if other checkboxes are checked.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Re- Single click in the check box ensure to select all check boxes

    Hi All,
    I have an issue to notify the urgency of the cart to the buyer while creating the cart.For that scenario we have a check box in the Basic data of shopping cart.I added the check box in the basic data. Now the  quote check box is available for all the line items.
    The requestor can select any check box in any line items,so whenever he selects the check box- automatically all the check box should get selected , if any of the check box get deselected then imediatelely all the check box in different line items also should get deselected.

    Hi Batchu,
    Thanks for your reply, See if you add any custom field it will come one by one in the basic data section. Adding one more check box doesnot work for this case.
    Moreover the problem is change to any particular line item can be captured in DOC_CHANGE_BADI but i cannot bring the same change to all line items (ie) If 3 rd line item check box is marked then immediately rest of the line item also should get marked.
    In the case of DOC_CHECK_BADI to identify the line on which the change happens is tough.
    SO thats is the problem for me to bring the logic in the code.
    Please if any one come across similar kind of issue please give your suggestion.
    Thanks,
    Sibi

  • 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

  • Select all check boxes in alv

    hi,
      the first column of my alv grid display is check boxes. i want all the check boxes to be checked when the user clicks on the select all button present on the grid.it very urgently required.plz give me the code.
    thanks & regards,
    santosh

    Hi santosh nayak  ,
       on the action method of select all button, read the the whole alv. Set the value of the first field as abap_true. Bind the itab back to the node.
    Regards
    Sarath

  • Select all tick boxes

    I have a cfoutput query which shows the folowoing
    Group 1
    "Check box" "John Smith"
    "Check box" "Paul John"
    "Check box" "Jeff Small"
    Group 2
    "Check box" "Craig Land"
    "Check box" "Pete Son"
    "Check box" "Pete smoth"
    so what i want next to each "Group" have a select all Check
    box in group link or Check box
    so if clicked only the check boxes in that group are
    checked

    > ok thanks for the great reply
    > any idea how i would do this?
    I think Dan might have been suggesting that - given it's a JS
    question -
    asking on a CF forum might not be the best idea. Speaking for
    myself, I'm
    a pretty good CF developer, but only an adequate JS
    developer. And that's
    probably representative of the audience here.
    I don't think Dan was trying to be unhelpful, just
    matter-of-fact.
    If you have JS questions, ask on a JS forum. "Best tools for
    the job",
    etc.
    Adam

  • 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

  • "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

  • Enable to select a check box in ALV while accessing it through portal

    Hi All,
    Currently I have given a link on portal to run a transaction code. The output of the program is ALV report, where user any select the check boxes.
    Now when I try to select a check box, it is not getting selected. I click on the checkbox, the tick appear and then the screen refreshes itself and the tick goes off. This is happening only when accessing it through portal. If i run the program in R/3 directly, I am able to select the check box.
    Please advice on this.
    Thanks
    Namit

    Reported to SAP for the same.

  • Selecting, Deselecting check boxes in JTable

    Hi,
    I have a JTable with 5 columns (First 4 are String and the last one in Boolean (ie., JCheckBox). I have tow buttons "Select All" and "Deselect All" below the JTable. I need to make all check boxes enabled if I click the button "Select All" and vice versa if I click "Deselect All". How do I do this. Please help me.
    Thanks
    Subbu

    hi,
    can you please help me? I have to make a table rather Ive made a table and my program search a list of files from a folder and populate different colums and rows. now I want the user to select the names and then selected files will be deleted.
    I am unable to achieve the proper GUI. ive made a JTable but the cells are editable. i dont know about TableModel and tried my level best to understand but failed to implement. when I try to add JCheckBox object in rows and columns the text representation of the GUI appears in the row rather then the actual Object. please guide me how to add JCheckBoxes into the rows and columns? how make cells uneditable? and how to give columns headings? I will be highly grateful.
    cheers
    seenan

  • How to disbale a group of checkboxes when i select one check box WEBDYNPRO

    Hi Friends,
    Can any body help me how to disbale a group of checkboxes when i select one check box WEBDYNPRO Abap
    Also can any body tell me how to handle chain endchain type of scenario in WEBDYNPRO Abap
    Thank you..
    Sai

    Hi
    In the context tab , create 2 context attributes ca_attr1 and ca_attr2   of type WDY_BOOLEAN under a context node cn_node
    now in ur Layout , bind the ENABLE property of CheckBoxGroup UI Element with this attribute ca_attr1
    bind the ENABLE property of CheckBox UI Element with this attribute ca_attr2
    create a action for ur Checkbox , for the OnToggle property of ur checkbox
    in OnactionToggle , check if ca_attr2 is 'X' , set ca_attr2 to ' ' ( for disable)
    this can be done by code wizard , press control +f7 and use read/set context attributes , use get_attribute and set_attribute methods
    // if ca_attr2 is 'X'
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr2.
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   get single attribute
        lo_el_cn_node->get_attribute(
          EXPORTING
            name =  `CA_ATTR2`
          IMPORTING
            value = lv_attr ).
    // if lv_attr2 is 'X' , use set_attribute method for ca_attr1
    IF lv_Attr EQ 'X' .
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr.
    *   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   set single attribute
        lo_el_cn_node->set_attribute(
          EXPORTING
            name =  `CA_ATTR1`
            value = ' ').
    ENDIF.
    regards,
    amit

  • Dynamic selection of check boxes on selecting a check box

    Hi Friends,
    I have to select the check boxes which are herarchically lower to a top check box,dynamically.
    Eg:
    Checkbox1
       checkbox2
       checkbox3
    so if i select check box 1, on the screen both checkbox2 and checkbox3 have to be selected.
    I did like below.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF P_ALL = 'X'.
          P_VAT = 'X'.
          P_NAME = 'X'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    but values are checked but on screen its not checked.
    how to handle this.
    Regards,
    Simha

    hi
    do like this
    paramenter: check_1  type c as check box at user-command ,
    check_2 type c as checkbox default X,
    check_3 type c as checkbox default X.
    At selection Sreen output
    if check_1 = 'X'.
    loop at screen .
    if screen-name = 'check_2'.
    screen-invisible  = '0'.
    endif.
    endloop.
    loop at screen .
    if screen-name = 'check_3'.
    screen-invisible  = '0'.
    endif.
    endloop.
    else
    loop at screen .
    if screen-name = 'check_2'.
    screen-invisible  = '1''.
    endif.
    endloop.
    loop at screen .
    if screen-name = 'check_3'.
    screen-invisible  = '1'.
    endif.
    endloop.
    endif.
    this solve ur problem
    Cheers
    Snehi

  • How to Select each check box values in a group of records

    Hi,
    I have a requirement in forms 10g. In that form there are 10 records are displaying each record has one check box is there if i click the check box on record number one and record number three and do some changes in the text field(adjustment field is number data type) then finally I want to see the total on one field called total amount.
    In this my question is how to select particular records in a group of records? and finally these selected records are inserted into one table.
    Because I am not able to fetch these records at a time.
    Is there any Array to define a record group to fetch each of them individually for example Rec[1],Rec[2]...like that if yes please suggest me the steps how to do this.
    Thanks in advance
    Prasanna
    Edited by: user10315107 on Dec 17, 2008 11:44 PM

    I'm sorry, but i didn't get your requirement in detail.
    Do you want to do the summing of the selected records in forms ? Or do you just want to know which records are selected and then process them?
    If you want to process the selected records in sql you could use an object-type to store the list of id's (of whatever primary key you use), loop over the block to fill it, and then afterwards process them.
    For this approach, first create an object-type in the database:
    CREATE OR REPLACE TYPE ID_LIST AS TABLE OF NUMBER;
    /Then, in forms you could do something like this to fill a list of id's:
    DECLARE
      lIds ID_LIST:=ID_LIST();
    BEGIN
      GO_BLOCK('MYBLOCK');
      FIRST_RECORD;
      LOOP
        EXIT WHEN :SYSTEM.RECORD_STATUS='NEW';
        IF :BLOCK.CHECKBOXITEM="CHECKEDVALUE" THEN
          lIds.EXTEND(1);
          lIds(lIds.COUNT):=:BLOCK.PRIMARYKEYITEM;
        END IF;
        EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
        NEXT_RECORD;
      END LOOP;
      -- Now you can use the object-list in SQL like :
      INSERT INTO MYNEWTABLE (cols..)
      SELECT (cols..)
        FROM MYOLDTABLE
       WHERE ID IN (SELECT COLUMN_VALUE FROM TABLE(lIds));
    END;Edited by: Andreas Weiden on 18.12.2008 18:17

  • Select all text boxes (help)

    I will try to explain this as best I can, bare with me.
    I'm using Acrobat X 10 and I'm trying to print a PDF file that are slides from one of my university classes. The problem I'm having is that some of the text is not printing or printing very lightly. I have solved this problem by going to the tools panel and then edit document text tool. From there I select a text box, select all text in said text box, select properties, click on the text tab and then changing the fill from white to black(following so far?). Now my issue is that there are many text boxes, to the point where only one word occupies a text box. So what I'm wondering is if there is a way to select all the text boxes so I can do this proccess for the whole file rather than selecting each text box and repeating the proccess, as this is very time consuming.
    Any help is appreciated.

    Why don't you see if your printer driver has an option for printing B&W (not grey or greyscale), that might do the trick.

  • How do I selectively  convert check boxes (Alt0168 Wingdings) but NOT Bookmarks into editable fields (from Word table)

    Acrobat X (Windows) is converting all fields from the Word table - making even the imported bookmarks editable. We just want the check boxes interactive. This has to be done on a large volume of documents, so it needs to be automated. I suspect some coding will be involved or perhaps a 3rd party app that allows one to selectively convert fields.
    Thanks!

    Ok, I found out that I need to apply the patch 5746875 to have that. But there only instruction to apply this patch on unix env. I need on Windows. Can any body help me?

Maybe you are looking for

  • Free goods purchasing

    hi, when we create a PO for free goods indicator then the condition tab is not comming. so in that case if freight charge is with the free goods then how do we do that?same problem is comming for excise in case of creating MIRO for the free goods PO.

  • Issue when using HP deskjet D1660 shared by printer server

    Hi, I'm trying to use HP D1660 through ReadyNAS's (network storage) printer server feature. I connected D1660 and ReadyNAS through USB link. Using system preference-printer&fax, my mac perfectly sees exact printer name broadcasted through bonjour and

  • Absolutely Love Apple's Wireless Keyboard

    Just wanted to say that I just picked up an Apple Wireless Keyboard and the Wireless Mighty Mouse this past weekend at my local Best Buy. I am absolutely blown away by how cool the Wireless Keyboard is. Not only is it a work of art, the keys have a t

  • Solaris on Intel Server

    Dear all, Will Open solaris 10 on Intel server given below.Customer wants to host SAP Enterprise portal on this server.Can you guide me to build a better solution??? Please follow the link below to know more about the server. http://www.intel.com/des

  • No syncing of photos, calenders and contacts, only music and Podcasts

    At first, syncing was no problem but now my 120 GB iPod Classic has decided to be a bit more selective of what it wants on the disc. Only Files that are stored over iTunes will be synced (Music, Podcasts). Photos, Calenders and Contacts won´t be sync