Challenge... Deselect a "CheckAll" checkbox without impacting a previous javascript....

Hello:
I am a Newbie at JavaScript. I am currently creating a form using Adobe LiveCycle Designer 8.1.12
On my form I have a table of 50 states each having its own checkbox assigned to it. Then I placed on the table a checkbox which I called "CheckAllStates". With the help of friends on this forum, I placed the following code to my "CheckAllStates" element so that if it was checked, all the state checkboxes would be checked and if it was unchecked then all the state checkboxes would uncheck. Below is the code that does that with a sample of the Array:
//First create an array for the State check box names
var stateArray = new Array("AL", "AK", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY");
//Then apply the code to check or uncheck the state checkboxes depending on the status
//of the checkall checkbox
for ( var state in stateArray )
if (this.rawValue==1)
var oField = xfa.resolveNode("xfa.form.PROPAC_APP.PROPAC_Page2.Subform2.tblStatesUSA.Row[*].CSKK_" + stateArray[state]);
oField.rawValue = 1;
} else {
var oField = xfa.resolveNode("xfa.form.PROPAC_APP.PROPAC_Page2.Subform2.tblStatesUSA.Row[*].CSKK_" + stateArray[state]);
oField.rawValue = 0;
It works great and I thought my problem was resolved. Then I noticed that, if all states were checked, and I uncheck any of the state checkboxes individually, my "checkallstates" remains with a check. This does make sense to me, so I thought that I would simply apply the following code to each state checkboxs onclick event to uncheck my "checkallstates"
xfa.form.PROPAC_Page2.Subform2.tblStatesUSA.Row[4].CheckALLStates.rawValue = 0;
Unfortunately nothing happens. To test my new script, I created a new form and applied three checkboxes and applied the same concept to my checkbox called CK1:
CK2.rawValue = "0";
This does work, so my question is what am I doing wrong? I am thinking that my "If" and "Else" statement in my "checkallstates" onclick event is involved with this not working.
Any ideas??
Thanks,
Keith.

I think Rocky meant the LiveCycle Designer forums. Your form is an XFA form, created in LiveCycle Designer. It uses a different set of JS APIs that Acrobat JavaScript in some cases, which it why it has its own forum.

Similar Messages

  • Synching iPod Touch and iPod Nano without impacting each device...

    just purchased a 6th gen nano...want to have some songs on it and different songs on the iPod Touch without impacting how each device. Currently put some songs on the Nano. When i sync the iPod Touch, the songs I didn't select for the Nano is removed from the iTouch (wanted those songs to stay on the iTouch). Can this be avoided?

    I don't understand.  In iTunes, each device is set up independently.  If you connect both devices at the same time, they should each appear separately, in the iTunes sidebar under DEVICES.
    You can then set up each device to sync as desired.  There should not be any dependency between the devices.  Select one device, and over to the right, set up the Music tab (and other tabs) to tell iTunes how it should be synced from your iTunes library.  Then, do the same for the other device. 

  • But how do I create a new iTunes backup password without knowing the previous one?

    In case anyone keeps track of such things, I'm among those folks who really doesn't recall ever being asked to create an iTunes backup password, but that's irrelevant to my question.
    I'm not in any bind. I don't need my backup files to restore anything. I will shed no tears as they are moved to the Recycle Bin (indeed, I will gladly do the deed myself).
    That said, it appears impossible to create a new backup password without knowing the previous one.
    If the only "solution" is to wipe my iPhone's memory and start from scratch, I will be a sad camper.
    Any help? Are backups to iCloud encrypted?
    Cheers...

    Additionally:
    Be super critical & meticulous (and whatever other synonym I missed) when you get a new password:
    Write it onto your bedroom wall, or someplace off of a computer that you will always find.
    If you active 2-step verification, the key is VERY important. Lose it & you may be toast.
    If you don’t 2 step verify, & use the Security Question instead --> do not lose, or forget the answers.
    Very nearly the same outcome!!!!!:  Bad experience.
    If you add a 2nd email address, make sure its a RESCUE address not just an alternate address.
    If you lose these, you lose access to your 3rd party purchases via Appstore for future upgrade. That will make you VEWY, VEWY UNHAPPY. Apple new OS versions do update, but add a new device & likely you will be unable to use your content on that device. It will never load if the ID locks up.

  • Can I sign in with multiple apple IDs in a single apple device without deleting my previous one?

    can I sign in with multiple apple IDs in a single apple device without deleting my previous one?

    Hi swagyoloswag,
    Welcome to the Apple Support Communities!
    There are several different services that require signing into an Apple ID to use on your iOS device. You can sign into different Apple IDs for different services on your iPhone. For example, Apple ID #1 for iCloud and Apple ID #2 for iTunes & App Store. You cannot sign into the same service with two different Apple IDs at the same time. The attached article has a list of services that are accessible with your Apple ID. 
    Where can I use my Apple ID? - Apple Support
    Cheers,
    Joe

  • Writing multiple arrays to a single xml file at seperate times without overwriting the previous file?

    Hi my name is Dustin,
    I am new to labview and teststand... I am trying to right multiple arrays of data to a single xml file. I can do this with a cluster but I have to create a variable for each of those arrays (21 arrays) and I was hoping to use the same variable for each array. Meaning I obtain my array of data write it to an xml file then replace that array in that variable with a new array and then call up my VI that writes that array to an xml file and write it to the same xml file underneath the first array without overwriting it. Attached is my VI I created to write an array to an xml file. Again I am wondering if there is a way to write multiple arrays to a single xml file at different times without overwriting the previous xml file.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Write_to_XML_File.vi ‏11 KB

    Hi dlovell,
    Check the attached example. I think it may help you.
    Regards,
    Nitz
    (Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved) 
    Attachments:
    Write to XML.vi ‏17 KB

  • How do I open PageMaker 7 files in InDesign CC without buying a previous version of InDesign?

    without buying a previous version of InDesign?

    InDesign CC does not have the capability of opening Pagemaker 6 and 7 files, but InDesign CS6 does.
    If you have a Creative Cloud subscription, you can also download InDesign CS6 at no charge using the Creative Cloud desktop app.
    In the Creative Cloud app, go to the Apps list. Scroll down until you see the heading Filters & Versions. Choose Previous Versions. You can download CS6 from there.
    Both versions can run on your computer at the same time.

  • When downloading from a Sony minidisc video camera, the picture is downloading but without sound.  Previously, it had downloaded successfully both sound and picture.  I have subsequently upgraded to Lion X (10.7.4).  Is there some problem with the driver?

    When downloading from a Sony minidisc video camera, the picture is downloading but without sound.  Previously, it had downloaded successfully both sound and picture.  I have subsequently upgraded to Lion X (10.7.4).  Is there some problem with the upgrade which is affecting the transfer?  Is there a way of resolving this?

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • How can I deauthorize my account without having my previous laptops?

    I change my laptop a lot and now I bought a new laptop, but somehow I can't authorized my account in itunes because it said max to 5 computer.
    The laptop that I used previously have given to others. How can I deauthorize my account without having those previous laptops?

    If you no longer have, or access to, the computer(s) you want to deauthorise,
    Log in to iTunes,  go to "view your account info" on the itunes store, deauthorise all five,
    (Please Note: this can only be done Once every 12 months)
    Then re-authorize your current Computer(s) one at a time..
    Authorise / Deauthorise About
    http://support.apple.com/kb/HT1420

  • Opening a file without hearing the previous one....

    How do we do to open a file without hearing the previous one if we open multiples files in a short time without willing to close the previous one each time ??

    How do we do to open a file without hearing the previous one if we open multiples files in a short time without willing to close the previous one each time ??
    If you don't wish to listen to all playing videos and it is too much trouble to stop or close non-foremost player windows, then don't use the QT X (or any similar) media player for playback. (I.e., this is what they are programmed to do.) Instead, use a media player like QT 7 which has a user preference that can be set so that only the "foremost" player window audio is heard when multiple videos are being played simultaneously.

  • I don't remember the answers to my security questions and now I can't buy anything. How can I reset them without respond them previously?

    I don't remember the answers to my security questions and now I can't buy anything. How can I reset them without respond them previously?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (116595)

  • I don't know how to set up closingFirefox to have all open tabs next time when I open it, without calling RESTORE PREVIOUS SESSION

    Question
    I don't know how to set up closingFirefox to have all open tabs next time when I open it, without calling RESTORE PREVIOUS SESSION

    Tools > Options > General
    :At the top '''When Firefox starts:''' Show my windows and tabs from last time
    You can still bring up your home page later.

  • How to activate a new release Strategy Of PR without deleting the previous one?

    Dear  All,
    1=I have a release strategy in purchase requisition which is without classification and active in system.
    2= Now i configured a New Release Strategy for Purchase requisition   which is with classification
    My question is i want to activate the New one with classification  in System without deleting the previous one.
    Should it possible? and How?
    Ritesh.

    Dear  Dev,
    My old release strategy at item level.
    But  the New one  is at header Level.
    But the previous  one  showing  the release Indicator.
    But  when i delete  the old configuration the old release indicator vanishes.
    But the thing is  in Pr with out classification we have same Pr doc.Type
    But in New Configuration We want to at header level  and with same doc   type.
    so without  deleting  the old one if i activate the New Strategy whether the system allow me
    to see the New Release Indicator?
    As  My testing when i deleted the old one the Old indicator in Line item Level vanishes.

  • How can i reboot my mac without lion cd previous owner installed it thru itunes?

    how can i reboot my mac without lion cd previous owner installed it thru itunes?

    Lion is usually installed through the App Store not through iTunes. There is no Lion CD. If you need to perform activities normally requiring an installer DVD, then you do it as follows:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    This will boot the Recovery HD and present a main menu of options such as Reinstall Lion, Restore a Time Machine backup, and run Disk Utility to repair the hard drive. There are additional options in the Utilities menubar item.

  • Clear the content of Checkbox without looping for every record

    Hi all,
    I am Karthik. I am working in Oracle EBS. I am developing one form in which it contain 2 checkbox. if checkbox1 is selected in 1st record it need to check checkbox2 all the record till the end of the block. when i uncheck it need to do reverse. what i facing during unchecking it need to loop through all the record and it assign the value. I use clear_item(even i know it use only for clearing the text_item) it is not working.
    Is there any other way than this to uncheck?
    Please specify apps property for set_block_property, set_window_property,set_item_instances_property,get_item_property,get_item_instance_property
    the procedure is
    /* This Procedure take care of post processing when button copy is pressed in form
              It take care of
              1.If the number of record in the block exceeds 1000 then it display a message, to confirm the copy to proceed
              2.If it less than 1000 then it directly proceed to copy by enabling copy_from and copy_to checkbox.
              3.Once copy button is pressed the label of copy button changed to cancel copy
              4.Cancel copy button is pressed , copy_from and copy_to checkbox is disabled in form
         Variable Declaration Purpose
         no_alert_button This variable used to track which button is pressed by user when alert message is shown
    PROCEDURE PROC_COPY_BTN_FCN IS
         no_alert_button NUMBER;
    BEGIN
              IF      Get_Item_Property('BLK_PROD_PROFILE.BTN_COPY',LABEL)='Copy'
              THEN
                   IF PACK_FORM_VAR.no_record_count >1000
                   THEN
                                  Fnd_Message.Set_String('Current Block Contain '|| PACK_FORM_VAR.no_record_count ||' Records. Copy may Take Time');
                                  Fnd_message.Show;
                                  no_alert_button :=Show_Alert('ALERT_RECORD_COUNT');
                                  IF no_alert_button =ALERT_BUTTON1
                                  THEN
                                            --IF      Get_Item_Property('BLK_PROD_PROFILE.BTN_COPY',label)='Copy'
                                            --     THEN
                                            --     :parameter.G_query_find := 'FALSE';
                                                 Set_Block_Property('BLK_PROD_PROFILE',Query_allowed,property_false);
                                                 App_Special.Enable('FILE.SMARTBAR_FIND',PROPERTY_OFF);
                                            --     set_menu_item_property('VIEW.FIND',ICON_IN_MENU,property_off);
                                                 App_Special.Enable('VIEW.FIND',property_off);
                                            Set_Window_Property('WIN_PROD_PROFILE',WIDTH,10.3);
                                            Set_Block_Property('BLK_PROD_PROFILE',BLOCKSCROLLBAR_POSITION,9.691,.906);
                                                 App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_CONTINUE',VISIBLE,property_true);
                                                 App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_TO',VISIBLE,property_true);
                                                 App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',VISIBLE,property_true);
                                                 App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',ENABLED,property_true);
                                                 App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',UPDATE_ALLOWED,property_true);
                                            --App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_DESELECT',VISIBLE,property_true);
                                            Go_Item('BLK_PROD_PROFILE.TEXT_PROD_BRAND');
                                            --App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',VISIBLE,property_false);
                                                 App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',label,'Cancel Copy');
                                  END IF;
              ELSE
                                  Set_Block_Property('BLK_PROD_PROFILE',Query_allowed,property_false);
                             App_Special.Enable('FILE.SMARTBAR_FIND',PROPERTY_OFF);
                   --     set_menu_item_property('VIEW.FIND',ICON_IN_MENU,property_off);
                        App_Special.Enable('VIEW.FIND',property_off);
                   Set_Window_Property('WIN_PROD_PROFILE',WIDTH,10.3);
                   Set_Block_Property('BLK_PROD_PROFILE',BLOCKSCROLLBAR_POSITION,9.691,.906);
                        App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_CONTINUE',VISIBLE,property_true);
                        App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_TO',VISIBLE,property_true);
                   App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',VISIBLE,property_true);
                             App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',ENABLED,property_true);
                        App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',UPDATE_ALLOWED,property_true);
                   --App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_DESELECT',VISIBLE,property_true);
                   Go_Item('BLK_PROD_PROFILE.TEXT_PROD_BRAND');
                   --App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',VISIBLE,property_false);
                        App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',label,'Cancel Copy');
              END IF;
              ELSIF Get_Item_Property('BLK_PROD_PROFILE.BTN_COPY',label)='Cancel Copy'
              THEN
                        Set_Block_Property('BLK_PROD_PROFILE',Query_allowed,property_true);
                        First_Record;
                        LOOP
                             IF :System.Cursor_Record = PACK_FORM_VAR.no_currec
                             THEN
                                            :BLK_PROD_PROFILE.CKBX_COPY_FROM := 'N';
                                            Set_Item_Instance_Property('BLK_PROD_PROFILE.CKBX_COPY_TO',current_record,UPDATE_ALLOWED,property_true);
                             ELSIF :System.Cursor_Record <> PACK_FORM_VAR.no_currec
                             THEN
                                            :BLK_PROD_PROFILE.CKBX_COPY_TO := 'N';
                                       Set_Item_Instance_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',current_record,UPDATE_ALLOWED,property_true);
                                            Set_Item_Instance_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',current_record,INSERT_ALLOWED,property_true);
                                  END IF;
                        EXIT WHEN:System.Last_Record ='TRUE';
                        Next_Record;
                        END LOOP;
                        /*     go_item('BLK_PROD_PROFILE.CKBX_COPY_TO');
                             Clear_item;
                                  go_item('BLK_PROD_PROFILE.CKBX_COPY_FROM');
                             Clear_item; */
                             :BLK_PROD_PROFILE.CKBX_SELECT_ALL :='N';
                             --App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_DESELECT',visible,property_false);
                        --     App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_DESELECT',enabled,property_false);
                             App_Item_Property.Set_property('BLK_PROD_PROFILE.CKBX_SELECT_ALL',visible,property_false);
                             App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_COPY',VISIBLE,property_true);
                             App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_COPY',ENABLED,property_true);
                             App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_CONTINUE',VISIBLE,property_false);
                             App_Item_Property.Set_property('BLK_PROD_PROFILE.CKBX_COPY_FROM',VISIBLE,property_false);
                             App_Item_Property.Set_property('BLK_PROD_PROFILE.CKBX_COPY_TO',VISIBLE,property_false);
                             --App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_DESELECT',label,'Deselect');
                             SET_BLOCK_PROPERTY ('BLK_PROD_PROFILE',BLOCKSCROLLBAR_POSITION,8.5,0.906);
                             set_window_property('WIN_PROD_PROFILE',width,8.9);
                             App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',label,'Copy');
                             App_Special.Enable('VIEW.FIND',property_on);
                             App_Special.Enable('FILE.SMARTBAR_FIND',PROPERTY_ON);
              END IF;
    END;
    Please help me to solve this issue.
    thanks and regards
    Karthik M

    You are creating your vaiables in the declerative block as
    <%!
    String [] equipment=new String[60];
    String [] type=new String[60];
    int i=0;
    int j=0;
    %>
    Place these declerations outside the declerative block i.e. in simple scriplets....
    Now on each page access you will get fresh variables
    Hope this helps...

  • Checkbox without the box

    Hey Forum,
    I'm trying to create a JCheckbox without it showing the box. The functionality is simple, when a user clicks on the text of the checkbox the check will appear or disappear (but no box should be visible). I'm using this in a JMenu to turn tabs on and off.
    Any ideas on how to do this?
    Thanks
    Jurgen

    Or JCheckBoxMenuItem?
    Or a normal JMenu where you manually set the icon to a check image or null?

Maybe you are looking for

  • How to delete all relationships in SIRI?

    Dear all, I probably made a mistake - not knowing this. I setup my iPhone knowledge by telling SIRI details about my relationships. During this I probably made a mistake and told SIRI about my wife (without family name). Additionally to that I explai

  • How to deploy custom development with JDI

    We use JDI to deploy webdynpro for ESS application. for that we create a track, check in ESS components in the track and set up run time systems. now we are going to do custom development, for example: create interactive forms, etc.. we would like to

  • OK Number Format in Intective but only cientific notation in other mode

    Hi, all. In BI 11.1.1.6 my report work well in interactive mode but in other mode (PDF, Excel, Html, RTF) the summation filed only display in cientific notation. Your help is highly apreciated Thank you very much Carlos

  • Backing up Ipod music to Itunes?

    I run Windows XP and I can't figure out how to back my friends iPod up to my iTunes Library. Any Help Plz?

  • ISE in High Availability (HA) mode.. Factors to look upon

    We are setting up lab where we have installed 2 ISE on VM.  We  are deploying them in HA mode. While deploying them we are facing error  after registering ISE-2 with Primary ISE-1. Even after periodic refresh  of 'Sync' tab we are getting 'out of syn