Counting Checkboxes with different Names

I have a form that I am creating in Livecycle Designer 8.0 that has 100 checkboxes that the user selects from. I would like to have a field that counts how many check boxes are checked. What is the easiest way to do this?
Also, Do I have to add each field individually or is there a way to select them all and insert to the formula at once?
Thanks!

Big thanks out to Paul Guerette for helping me write the script for this. He gave me an option to do it as an exit event of the pages or on a button click. Here is the code for the button click:
- form1.Order_Page.Button1::click: - (JavaScript, client) ---
form1.Order_Page.Product_Table.Row3.Course_Quantity.rawValue = 0;
//app.alert("Page1 Exit Event fired!!!!");
//Get total number of element on Page 1 of the form
var allChildElements = form1.Course_Selection_Subform1.Course_Selection_Page_1.nodes;
var intNumElements = allChildElements.length;
//app.alert("The number of elements is: " + intNumElements);
//Loop through all the objects on Page1
for(j=0; j< intNumElements;j++){
//set the 1st object to a variable name
currentElement = allChildElements.item(j);
//if the object is a field then test to see if it is a checkbox
if(currentElement.className == "field") {
//app.alert(currentElement.ui.oneOfChild.className);
// is it a checkbox?
if (currentElement.ui.oneOfChild.className == "checkButton"){
//Is the checkbox checked?
if (currentElement.rawValue == "1"){
//increment the Course_Quantity field
form1.Order_Page.Product_Table.Row3.Course_Quantity.rawValue = form1.Order_Page.Product_Table.Row3.Course_Quantity.rawValue + 1;
//app.alert("Page2 Exit Event fired!!!!");
//Get total number of element on Page 1 of the form
var allChildElements = form1.Course_Selection_Subform2.Course_Selection_Page_2.nodes;
var intNumElements = allChildElements.length;
//app.alert("The number of elements is: " + intNumElements);
//Loop through all the objects on Page1
for(j=0; j< intNumElements;j++){
//set the 1st object to a variable name
currentElement = allChildElements.item(j);
//if the object is a field then test to see if it is a checkbox
if(currentElement.className == "field") {
//app.alert(currentElement.ui.oneOfChild.className);
// is it a checkbox?
if (currentElement.ui.oneOfChild.className == "checkButton"){
//Is the checkbox checked?
if (currentElement.rawValue == "1"){
//increment the Course_Quantity field
form1.Order_Page.Product_Table.Row3.Course_Quantity.rawValue = form1.Order_Page.Product_Table.Row3.Course_Quantity.rawValue + 1;

Similar Messages

  • To create multiple files with same content but with different names

    Hi SapAll.
    here i have got a tricky situation on Idoc to File Scenario.
    in my interface of an Idoc to file ,there  is requirement to create multiple files with different file names but with same content based on one Idoc Segment.
    which means there will be one Zsegment with two fields in the idoc,where one field with (content refers to the name which file name should start with .so lets say if this segment is repeated for 3 times then PI should create 3 files in the same directory with same content but with different file names (from the filed).
    so here for now iam using one reciever file communication channel.
    can any body give me the quick answer.
    regards.
    Varma

    What do you mean by different names?
    when i make proper setting in the Receiver Channel....on how to create the filename (what to append) like add Timestamp, counter, date, messageid.....even in this case you will ahve file with different names and that too from same File channel.
    You can perform multi-mapping in XI/ PI and then your File channel will place the files in the target folder with relevant names. You cannot use Dynamic Configuration with Multi-Mapping!
    If you intend to use different File channels, then do the configuration as required (normal)...even over here you can follow multi-mapping.
    Do not use a BPM!
    Regards,
    Abhishek.

  • Hi All, I am using iphone in UAE and ipad in India usinging same apple id. Earlier I could do imessage  to my Ipad with different name but with  software update,I am unable to do, as signing id for the iphone and ipad is same.How to restore back

    Hi All, I am using iphone in UAE and ipad in India usinging same apple id. Earlier I could do imessage  to my Ipad with different name but with  software update,I am unable to do, as signing id for the iphone and ipad is same.How to restore back

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • TS4009 I seem to have 2 iCloud accounts with different names - a free storage that came with my Macbook and one I used when I bought some iCloud space. How can I cancel the free account?

    I seem to have 2 iCloud accounts with different names - a free storage that came with my MacBook and one I used when I bought some iCloud space. How can I cancel the free account? Because of this I can't access iMatch and the ICloud account I paid for on my MacBook
    Any ideas cos its frustrating that I can't access something I paid for!

    Sign out of the account you do not wish to use, sign into the one that you do wish to use.

  • Install many executable on the same PC with different names

    Hello,
    I'm trying to install several executables with different names in the same computer but at the end of install process the message is : "an higher  or existing version is already installed in this computer"
    I create the Executable and Setup with LabVIEW Application Builder and install the executable in the same Program Files root directory with a different sub-directory for each executable as this : Program Files-->MyProject-->SubProjet1 with exe1/SubProject2 with exe2 etc...
    My OS is WinXP pro SP2 and I work with LabVIEW 8.5.
    Thanks and regards,
    Armindo PINTO

    Hi Armindo,
    Thank you for using the NI forums! 
    From what I understand, you are trying to create multiple executables of a vi project to co-exist on the same PC. Any time you re-use the LabView 8.x project file, it will generate
    install package with the same product ID number. That means, if the
    deployed PC has the previous version installed, which had been
    generated from the same project file, the new install package will
    remove the previous version and overwrite it with the new version. Or as in your case, not allow you to install lower versions of the executable. That
    means, the previous version will be no longer available on the deployed
    PC. If you are creating an upgraded version to the product this is
    fine.
    However, if you need to re-use the LabView 8.x project
    file and generate a new product, which can potentially co-exist with
    the previous on the end user PC, you need to generate a new installer
    with a different product ID number. One of the way to do it:
    Copy existing project file (e.g. "name1.lvproj") under a different name (e.g. "name2.lvproj")
    Open the new instance of the project
     Expand the "Build Specifications"
     Right click on the installer specification, e.g. "name1 Installer"
    Select "Duplicate" from the menu
    You can now delete the instance "name1 Installer" and rename the "Copy of name1 Installer" to a suitable name, e.g. "name2 Installer"
     Make changes that are needed between the two versions, for example:
    Select a new source VI
    Build a new exe file
    Reflect the new exe file in the "name2 Installer"
    Make
    any other changes needed in "name2 Installer", for example different
    documentation files included in install, change in the target install
    directories, changes in the start menu shortcuts. etc.
    Build the install.
    Please let me know if this solves the issue, and let me know how you get on.
    Kind regards,
    Ashish Naik
    Field Sales Engineer
    National Instruments UK

  • Sending attachment with different name

    Hi,
    is it possible to send attachment with different name with javaMail?
    If possible, is there a sample code to do it?
    Thanks.
    Edited by: user1071181 on Aug 6, 2011 2:14 PM

    Hi,
    I listed some of my code at below.
    But i did not find attachFile method for messageBodyPart class.          
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setDataHandler(new DataHandler(new MemoryDataSource(....getPDFObject())));
    messageBodyPart.attachFile("abc.pdf");
    messageBodyPart.setFileName("abc_2011_08_07.pdf");
    messageBodyPart.setHeader("Content-Type", "application/pdf");
    multipart.addBodyPart(messageBodyPart);
    message.setContent(multipart);

  • Look for files with different names

    Do we have any utility or command in solaris 8 where we can check for files in two folders with different names and display them somewhere? Manual search for such files becomes very difficult when there are a large number of files in the folders. Please suggest.

    Check with an Unix forum like http://www.unix.com

  • Unable to copy database with different name in the same instance

    I had a huge database and wanted to try some change optimization changes.
    So wanted to make a copy of the database along with data in the same instance.
    I have tried copy database wizard several times but always see the error as in attachment.
    Can someone let me know how to troubleshoot further?
    If this is not the correct way please suggest how do i copy a database with different name in the same instance along with data.

    Hi Nandu,
    From the screenshot, the error 1813 happens when corrupt database log is attempted to attach to the SQL Server. To work around this issue, please preform the following steps, for more details, please review this
    blog.
    1. Create a new database with same name which you want to recover. Make sure that the MDF file and LDF file have same name with previous database data and log file.
    2. Stop SQL Server. Move original MDF file from old location to new location by replacing just created MDF file. Delete the LDF file of new location just created.
    3. Start SQL Server. At this point, the database is in suspect status.
    4. Make sure that system tables of Master database allows to update the values. Please note that you will be performing this in query window.
    Use Master
    go
    sp_configure 'allow updates',1
    reconfigure with override
    go
    5. Change database mode to emergency mode.
    SELECT *
    FROM sysdatabases
    WHERE name = 'DatabaseName'
    BEGIN
    UPDATE sysdatabases
    SET status = 32768
    WHERE name = ' DatabaseName '
    COMMIT TRAN
    6. Restart SQL Server. Then execute the following DBCC command in query window to create new log file.
    DBCC TRACEON (3604)
    DBCC REBUILD_LOG(databasename,'c:\yourdatabasename_log.ldf')
    GO
    7. Reset the database status using following command.
    sp_RESETSTATUS yourdatabasename
    GO
    8. Turn off the update to system tables of Master database running following script.
    USE MASTER
    GO
    sp_CONFIGURE 'allow updates',0
    RECONFIGURE WITH OVERRIDE
    GO
    9. Reset the database status to previous status.
    BEGIN
    UPDATE sysdatabases
    SET status = (value retrieved in first query of step 5)
    WHERE name = 'DatabaseName‘
    COMMIT TRAN
    GO
    Make sure that you have done all the steps in order and restarted SQL Server where it is mentioned. Also run SQL Server Management Studio as administrator.(Right click-> Run as Administrator)
    Thanks,
    Lydia Zhang

  • Copying a script name with different name

    Hi,
    I want to copy my script form which has name zform1. Now i want to copy the same script form with different name i.e zform2 in the same client.
    in my se71 window i do not have a copy icon on the toolbar.
    pls. help me on how to do this.
    Thanks,
    Rose.

    Hi,
    Please follow the steps below :-
    1. Create a SCRIPT with the new name and just save it ( No need of defining any windows, just shot description is enough).
    2. Open the newly created script in change mode and go to the tab 'Form' and press 'Copy from..' .
    3. A small wondow will pop up, wherein you need to enter your previous SCRIPT name.
    4.Once done, your script will be copied.
    Please reward points if helpful.

  • Save Task with Different name in workspace

    Hi,
    While using SAVE button in workspace, is there a way to save tasks with different names?
    steps:
          1) Click on start Process in workspace  - Complete task order
           2) Click on save button with some data.
                      - Is it possible to change the name here?
    if there are 50 tasks named "Complete task order" in To-do list, users want the ability to rename task.
    Any help is appreciated.
    Thanks,
    Krishna

    Hi,
    While using SAVE button in workspace, is there a way to save tasks with different names?
    steps:
          1) Click on start Process in workspace  - Complete task order
           2) Click on save button with some data.
                      - Is it possible to change the name here?
    if there are 50 tasks named "Complete task order" in To-do list, users want the ability to rename task.
    Any help is appreciated.
    Thanks,
    Krishna

  • Must I define abstract  interfaces with different names for BPM?

    Must I define abstract interfaces with different names for BPM?
    When interface appeared several times with different values and usage.
    Of course they are the same message type.

    Hi,
    Check this
    RFC Scenario using BPM --Starter Kit
    Regards
    Seshagiri

  • Same SKU with different names in 2 systems

    Hello All,
    I am wokring on a SNP scenario. We have a finished sku A and its sub component sku C.
    <b>A (FERT) ---> C (RM)</b>
    We have forecast on sku A and want to find dependent demand in sku C thru SNP
    <b>Forecast A -
    > Find Dependent Demand C</b>
    <b>sku A maintained in ERP1 R/3 system as FERT
    sku C maintained in ERP 1 R/3 system with different name sku B as Raw material
    sku C maintained in ERP2 R/3 system as FERT</b>
    Now product A is maintained in one R/3 system and product C is in another R/3 system. Both these R/3 systems are connected to APO and both these materials are also in APO now.
    After heuristic planning in SNP, we want to pass the dependent demand to ERP2 system as Sales Order.
    My concern is if sku C has different name in 2 systems, how should I pass the demand to other system?
    Please advice.
    Thanks,
    Sanju
    Message was edited by:
            Sanju

    Maybe you can create SKU D in APO (and R3)  which is lined through PPMs or PDS to SKU B from ERP1 and SKU C from  ERP2 and aggregate  the dependent demand generated during Heuristics to SKU D
    then you can only transfer only SKU D to ERP2? Am not sure how important it is for you to hav the link between SKU D and SKU c in ERP2
    Alternately
    Dont transfer SKU C from ERP2 to APO. Only create Dependent demand for SKU C from ERP1 and transfer it to ERP2. You can run MRP again in ERP1 for the aggregated requirement (unless you want some APO specific functionality, the result must be close to what you will get in APO)

  • Saving png photos with different names..

    Hello guys,
    I am not not so familiar with Labview so i would like some help. I have a Vi which is actually controlling 32 RBG lights.We use DMX protocol..everytime one led is on then we take a picture and then the led goes off..Then the second goes on end so on..we have 8leds in 4corners..So we have corner1_led1,corner1_led2 untill corner4_led8 .So in the end we have 32 png photos saved.What i want is to save the photos with different names and the numbers to start from 1 instead of 0.. For example if we select white light and  save the images as "new" the images are going to be named "new_white_0_0" instead of "new_white_1_1" . Do you have any idea how i can change it?
    Attached current photos names and Vi. 
    Any comment would be helpful.
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    14_07_21_WMS_RGB LED panel.vi ‏162 KB
    names.png ‏127 KB

    The indexing terminal (the [ i ] in the for loop) starts at 0. When creating your filename, use the "increment" primitive from the numeric palette. Then your file names will start at 1 instead of 0.
    I noticed from your VI that you do a lot of string concatenation to build the file name/path, you can use the format into string and build path VIs to make the block diagram look a little simpler. You could also update the deprecated functions (e.g. the open file) with the modern equivalents.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Identical pages with different names on website

    Hi, I've recently put up a new website which completely
    replaces the old one. I'm about to delete all the old pages off the
    server, but I notice they're still coming up on google. Is it bad
    practise to replace the old pages with my new ones, and leave two
    copies of the page on the server but with different names? Eg, the
    new page about restaurants and entertainment is called
    "restaurants_entertainment.html" but the old page is just called
    "restaurants.html". So I was thinking I could save my new page as
    'restaurants.html' and put it onto the server as well, so that when
    users click on the search results they get taken to the new
    restaurant page and not the old one. I'm thinking this is not a
    good thing to do? just wanting confirmation from the
    experts...

    It's best, whenever possible, to give your new pages the same
    filename as
    your old pages -- so that basically, you're just replacing
    the content on
    each page.
    If that's not possible, you need to 301 redirect from the old
    pages to the
    new pages, e.g., redirect from restaurants.html to
    restaurants_entertainment.html, so that when people click on
    the "old page"
    in Google, or from their bookmarks, or in a link on another
    site, they will
    end up at your new page.
    Sonjay
    On 11/9/08 7:44 PM, "just_carly" wrote:
    > Hi, I've recently put up a new website which completely
    replaces the old one.
    > I'm about to delete all the old pages off the server,
    but I notice they're
    > still coming up on google. Is it bad practise to replace
    the old pages with
    > my
    > new ones, and leave two copies of the page on the server
    but with different
    > names? Eg, the new page about restaurants and
    entertainment is called
    > "restaurants_entertainment.html" but the old page is
    just called
    > "restaurants.html". So I was thinking I could save my
    new page as
    > 'restaurants.html' and put it onto the server as well,
    so that when users
    > click
    > on the search results they get taken to the new
    restaurant page and not the
    > old
    > one. I'm thinking this is not a good thing to do? just
    wanting confirmation
    > from the experts...
    >

  • Is it posible to create objects with different names dinamically?

    Hi,
    I'm creating an app that manages different wireless nodes in a network and I was thinking that I could create a class called Node which would have a constructor that every time I created an object Node, I would pass the address and some other data about the Node and the constructor will save all that data and also create a unique ID for every Node object.
    Now the problem is that I need to be able to discover all the nodes in my network every time the user clicks a Ping button. So every time the users clicks Ping I need to do a ping and create as many Node objects as nodes I have in my network. The thing is I don't know how to make it create the node objects with different names so after I've created all the nodes objects I can refer to one of them.
    Something like this.
    int Id=0;
    id++;
    Node node+Id = new Node();
    I think its not possible to do something like that. If it isn't how can I do to refer to one of the objects I've created?
    Thanks.

    Twistx77 wrote:
    Thanks to both of you. I'll check out the Link and if I can't find the solution there I'll make the array , I don't know how I didn't think about doing that. There are two collections you should study specifically:
    First you have the ArrayList which in essense is a growable array. This means you don't have to decide in advance how big it can be.
    Second there's the HashMap. It's sometimes called an associate array. Such an array doesn't have fixed position indexes like an ordinary array. Instead each index (called key) is associated with a value but the keys don't have any particular order. Still, given a certain key, finding the corresponding value in a HashMap is almost as fast as an array access.

Maybe you are looking for

  • Sync strangeness after disk replacement and  OS reinstall

    This was posted in someone elses thread but I didn't want to hijack his thread so I started my own. I'm having a similar issue after a hard drive upgrade and OS reinstall. I added a 500G disk to my older g5 imac, which I sync my iphone to and ever si

  • How to drag a selection of text in RichTextEditor ?

    I don't know if there is any way to drag a selection of text ? I struggle with this for one day now . I want to let the user drag their text selection to a datagrid or canvas , but when I select a part of text ,the sencod time I trigger mousedown eve

  • Web Intelligence Document Freezing

    Hello everyone, I hope someone could help me solve this issue. I open a new Web Intelligence document,  select the required universe on which to build my document, it starts loading for a couple of minutes and then freezes. this issue appeared just y

  • IPod frozen, computer & iTunes not recognizing it HELP PLEASE!

    My iPod's screen (I have it unplugged from computer) is stuck on the synchronizing Do not disconnect. message and it won't go off. It also still stays it's locked although it isn't. Whenever I plug it back into the laptop it NOTHING picks it up, it j

  • Oracle logs ORA-25228 error messages

    Hi, I am running Oracle )i Release2 and am using Java/JMS to dequeue messages and PL/SQL to enqueue messages. Everything works great, but when I look in the "udump" catalog on the machine where Oracle is running, I see 20-30 files generated each day