WAD checkbox-group: get number of items checked?

Hi,
is it possible to find out how many items are checked in a checkboxgroup, maybe with a javascript? It'd like to know if so, because I only want to show certain webitems when a number of items is checked in that checkboxgroup.
thanks!
Tom

You can probably do something like this (not tested)...
function countselects()
var inputs=document.all("SAPBW_CHECKBOX_1").getElementsByTagName("INPUT");
var selectedcounter = 0;
for (var j=0; j<inputs.length; j++)
     if (inputs[j].type == 'checkbox')
          if (inputs[j].checked) selectedcounter++;
return (selectedcounter);

Similar Messages

  • CheckBox Group Get Selected Items

    Hi, I have a problem with a CheckBox Group.
    I have different items in the CheckBox Group, and I get the items that are selected.
    When I do the checkboxgroup.getselected () returns the selected items, but I do not know how to get the values separately.
    I tried to do:
    ArrayList array = new ArrayList ();
    array. add (checkboxgroup.getSelected ());
    but in the array.get (0) add all the values. And I need:
    array.get (0) -> first value selected checkboxgroup
    array.get (1) -> second value selected checkboxgroup
    array.get (2) -> third value selected checkboxgroup
    Thank's !
    Edited by: henrynxd_08 on Jul 16, 2009 4:55 AM

    Never mind..I got it.
    it as simple as that:
    Alert.show (lst.selectedItem.fieldname);
    ;)

  • Org.w3c.dom. node, get number of items

    hi,
    how can i get the number of items of one node?
    thanks

    Have you tried something like - getChildNodes().getLength()?

  • Inbound processing of INVOIC IDOC without PO number and item check

    Hi All,
    I'm processing an Inbound INVOIC IDOC to create an Intercompany Vendor Invoice against a Purchase order but wish to do process this based on the delivery note number rather than the PO number. The INVOIC IDOC will not contain a reference to the Purchase order and thus the need to process it based on the delivery note number which will be referenced in the Purchase order Goods receipt.
    However, when processing the Inbound INVOIC IDOC it is validating that the number in IDOC segment E1EDP02 with QUALF 001 is the purchase order number. In this scenario it won't be and therefore it errors. The delivery note number is in IDOC segment E1EDP02 with QUALF 016.
    Could someone please tell me if there is a standard way that we can have this Inbound INVOIC IDOC processing using only the delivery note?. If I manual process in the MIRO transaction I can process an Invoice based on the dleivery note in the Goods receipt so would expect I should be able to do so also with the IDOC processing.
    I have noticed that IDOC segment E1EDP19 with QUALF 003 is not being populated and therefore according to the SAP help the IDOC segment E1EDP19 with QUALF 002 holding the Vendor material number is checked. Could this have something to do with it not being able to process the Invoice using only the delivery note number reference?.
    Thanks in advance,
    Michael

    Hi Karen,
    According to Note 103051 - EDI: Multiple reference to same purchase order item.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active. Please check the note.
    Thank you,
    Shyam

  • How can I get a number of items from a group

    I'm trying to load assets into a library. Most of the assets are groups. I'd like to label each asset with number of items from that specific group.
    Here is my code:
    var d=app.activeDocument;
    //create empty library
    var library = app.libraries.add(File('mylibrary.indl'));
    for(myCounter = 0; myCounter < d.pages.length; myCounter ++){
        if(d.pages[myCounter].groups.length > 0){
             //how do I get number of items from a group?
             var item_count = ?????
        }else{
             var item_count = '1';
        library.store(d.pages[myCounter].allPageItems);
        library.assets[0].name=item_count;
    Thanks for your help and Happy New Year!!!

    I figured it out!!!
    Here is the solve that worked for me:
    var elems = d.pages[myCounter].groups[0].pageItems.everyItem().getElements();
    var item_count = elems.length;

  • I am trying to update a number of items which the software check brings up:      It runs and says it is installing but at the end I get this error message:    The update could not be expanded, and may have been corrupted during downloading. The update wil

    Hi,
    I am trying to update a number of items which the software check brings up:
    It runs and says it is installing but at the end I get this error message:
    BUT then I ge tthis:
    Can anyone help me to enable the software to update?
    Thanks

    Thanks.  Something isn't right as I just tried to download the iphoto update - it said it had competed the download but then when I clicked on the download item I get this:
    Think will have to take it into the store.....
    thanks for replying.

  • Listview checkbox group item only one can be checked

    I have a listview with checkbox , and grouped some checkbox, I need only can be checked for two checkboxes, but I use
     private void Listview_ItemCheck(object sender, ItemCheckEventArgs e)
                this.Listview.Items[0].Checked = !this.Paramlst2.Items[1].Checked;
                this.Listview.Items[1].Checked = !this.Paramlst2.Items[0].Checked;
    but it is not worked.
    can anybody suggest me how to modify the code to realize item0 and item1 only one can be checked.
    thanks

    Hi Sunny,
    According to your title, do you mean you only one checkbox is required to check?
    And the code, it seems not clear to me. What is Paramlst2 stand for?Which control did you use ?
    Could you help provide more information? It would be better to help us to understand your issue.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • WAD 7.0 Checkbox Group web item - ability to select/deselect all

    Hello. I am currently using within the Web Application Designer 7.0 the web item Checkbox Group. I would like the ability to add a "select all" and "deselect all" button(s) to select all values and deselect all values respectively.
    Has anyone in the community been able to accomplish this? Our user base has asked about this frequently.
    Kind regards,
    Lynn Peter

    Hi,
    This can be solved by using a Container layout item and a button group item.
    1 Put the Checkbox item and a button group item in the Container layout item.
    2 Configure a button in the button group item with the command CLEAR_SELECTION_STATE and connect it to the criteria/key figures you wish to use it on.
    3 Configure another button similarely with the command SET_SELECTION STATE. (In our user case this button was not necessary)
    4 Configure the Container layout item to display your checkbox and button group as desired.
    This should solve your problem, we had exactly the same problem with the before "unfriendly" user interface.
    BR,
    Niclas

  • How can I get values from a checkbox group?

    I have been developing a web application with Creator EA 2 and am trying to finish all the functionality before switching to 2. The last thing I have to do is pick up the status of checkboxes that I put in the page with the checkbox group component. Getting stuff from other fields is easy in the code for the page with a statement like: this.fieldname.getText() or ...getValue(). When you enter a line like this, Creator is helpful and gives you the completion choices. I tried some for the checkbox group, but none seem to give me what I want. What I want is the status ( true or false, 0 or 1, ...) for each checkbox in the group. I would appreciate advice on a simple way to get this. Thanks.

    You do not necessarily need to bind selected to an array. You might do that if you want to put the array in a session bean, but otherwise, the binding isn't necessary.
    Earlier, I provided a link to the Delving into Components tutorials. Here is an excerpt:
    "For the items property, you specify a display label and a return value. The selected value returns an array of objects of the same type as the return values. If you use a Default Options component to specify the items and return values, selected returns an array of String objects.
    The values in the selected array match the return values of the selected checkboxes."
    To illustrate, here is how to get the selected values without binding to an array. In this example, the id for the drop-down list is dropdown1.
        public void prerender() {
            if (checkboxGroup1.getSelected() != null) {
                String str="You selected ";
                String[] userSelections = (String[]) checkboxGroup1.getSelected();
                for (int i=0; i < userSelections.length; i++) {
                    str+= userSelections[i] + " ";
                staticText1.setText(str);
        }Hope this helps,
    Chris

  • Display number of items in Get Info results?

    Our studio has finally made the jump to OS-X (Tiger) from OS-9. (Okay... I'll admit we had a bit of an "encounter" with Windows XP in the interim...)
    Part of our production workflow sees 1000's of folders/files routinely moved around from various media - CF card to hard-drive, DVD to external hard-drive etc. As part of our SOP, after a large transfer of important files, we check both the source drive/folder and the destination drive/folder to ensure the item count is the same.
    In OS-9, Apple accomodated this step in the Get Info window by showing the number of items in any given volume or folder. In OS-X, it seems to be gone. Surely I'm missing something...
    If Apple truly has done away with this feature (bad move from a production standpoint IMHO) is there a third-party patch or app that can display the number of items in any given folder or volume?
    Thanks-
    j
    G5   Mac OS X (10.4.5)  
    G5   Mac OS X (10.4.5)  

    I made an Automator action, which I can access with a control click on any folder.
    1. Launch Automator, click on Finder in the Library, then drag the "Get Selected Finder Items" from Actions into construction area
    2. Click on Automator in the Libray, select Run Applescript in Actions and drag it into the work area
    3. Paste in this Applescript:
    tell application "Finder"
    count every file of entire contents of (selection as alias) --files only
    display dialog ((the result) as string) & " Files" & "." buttons {"OK"} default button 1
    end tell
    4. Go to menu item File and select Save As Plugin, fill in the name and have it as a plug-in for Finder. It will be saved to
    "/Users/username/Library/Workflows/Applications/Finder/FileCount.workflow"
    which will appear in the Automator section of your control click contextual menu.
    This counts files only. If you want to include files and folders you will need to change the Applescript.
    Francine
    Francine
    Schwieder

  • To get service order from sales order number and item number

    The select on AUFK takes much longer time than the transaction which is used to get the sevice order number starting from VA03. ( select one line item. goto repairs, then select the repairs column and goto SM Order). Is there any other table than AUFK from which i can get service order number.

    Hi!
    Check, if you have an entry in table VBFA for your sales order (sales order in VBELV, POSNV, AUFK in VBELN and POSNN, VBTYP_N might be 'C').
    If so, your select will be much faster by using VBFA.
    Regards,
    Christian

  • HI, I just bought an iPhone 4S. Although my iPad and other iPhone 3GS connect to our server (SBS2003) I cannot get through.  It checks all items in the connection and then I get the message :Cannot get mail, the connection to the server failed."

    HI, I just bought an iPhone 4S. Although my iPad and other iPhone 3GS connect to our server (SBS2003) I cannot get through.  It checks all items in the connection and then I get the message :Cannot get mail, the connection to the server failed."  I Tried everything, rebooting, reset all iPhone, etc.  All Apple devices work perfectly expect mine.  Please advise

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    Additional things to try.
    Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    On your iPad go to Settings > General > Reset > Reset network settings and see if that enables you to connect.
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
     Cheers, Tom

  • I have a new ipad min2.  I have the verizon activated.  but cannot find phone number.  I checked view account.  How do I get my phone number  asscoiated with my Ipad?

    I have a new ipad min2.  I have the verizon activated.  but cannot find phone number.  I checked view account.  How do I get my phone number  associated with my Ipad?

    Your ipad has a cellular access number in settings under cellular data.
    it is not a phone, and that number can't be used to phone calls.

  • Is it possible to get menu item checked state?

    In a script I need to know the state of a menu items checked state - e.g. the View/Proof Colors menu item.
    Is that possible? (and of cause if it is how do I do it?)
    Thanks,
    Jack

    The reason I need the state of "Proof Colors" is that I want to turn on/off the visibility of a layer set depending on its state.
    In the layer set I would have my printing adjustments layers. This way it is very easy to compare the image with the softproof. When "Proof Colors" is turned off the printing adjustment layer set would also be turned off - displaying the image without any printing corrections.
    When "Proof Colors" is turned on the printing adjustment layer set would also be turned on - displaying the softproof with printing corrections applied.
    Jack

  • Problem with checkbox group in row popin of table.

    In table row popin I have kept Check Box Group.I have mapped  the texts property of checkbox group to the attribute which is under the subnode of the table.the subnode properties singleton=false,selectioncardinality=0-n,and cardinality=0-n.
    if there are 'n' number of records in the table.each record will have its own row popin and in the row popin there is check box group.
    the check box group in the row popin  belongs to that perticular row.
    but the checkboxegroup values in row popins of all the  rows are getting changed to the row which is lead selected.
    The same scenario  (table in the row popin is showing the values corresponding to its perticular row and all the table values in popin are not getting changed to the one lead selected in the main table)is working fine with the table in place of  checkbox group in row popin with datasource property of table  binded to the subnode
    I cant trace out the problem with checkbox group in place of table.
    Please help me in this regard.I have to place check box group in place of table in row popin.
    Thanks and Regards
        Kiran Kumar K

    I have done the same thing successfully with normal check box ui element. Try using check box in your tabel cell editor instead of check box group.

Maybe you are looking for

  • Opening SWF Files in the Application window

    Hello Everyone, We have a problem in opening .swf files in our application. We had quick time movies(.mov) which we used to open and play inside the application window, using QuickTime Framework APIs in the code. Presently we had converted these quic

  • PDF go to [Save As] page instead of opening.

    When I click on a PDF, to open it from the web, it takes me to a [Save As] page instead of opening.  I want my PDF's to open when I select them. How do I make PDF's open when clicked?

  • Spry Horizontal Menu - Safari on Mac

    I have used the spry menu in CS3 for the first time on a Mac and it looks fine in Firefox, but the sub menus look like they are about 4px to the left on Safari. I have one page uploaded with the menu on it at www.fatpipe.co.uk/AT/bodies2.html Any ide

  • Last execution time() function in webi

    Hi Everybody, If you use Last Execution time() function in webi it will give us something like: 9:36:53PM. But i need to minus 1hr from this.i should get the time as 8:36:53PM. Everytime i use this function i should minus one hour from the Last Execu

  • Horizontal Sub Menu

    I understand how to create a horizontal spry menu, but it still gives me vertical submenus.  How can I create a horizontal submenu?  I've been told that it is controlled in the "ul.menubarhorizontal ul" , but that doesn't seem to work.  There are als