Validate that one or more checkbox are ticked.

Currently I'm checking if the user has ticked at least one of the checkboxes by using:
if(CheckBox1.rawValue == 0 && CheckBox2.rawValue == 0){
app.alert("Please select one or more checkboxes.");
Is there a way to count the number of checkboxes and do a loop. If you have 15 checkboxes the code above gets a bit hard to read.
I've also use the <validate nullTest="error"/> in the xml to flag the checkbox as being required but this is not true. As long as one or more checkboxes are select the user should not be alerted or shown that checkboxes are not selected. Is there a way to highlight the checkboxes?

This is what I would do.....
1. Set up a Global Variable under File>>Form Properties>>Variables Tab
     //Variable declared here are always considered string
     Example: GCheckCount and set the initial value 0
2. For each CheckBox I would add the following code under "change" event
if (this.rawValue == 1) {
     GCheckCount.value = "" + GCheckCount.value + 1;
}else {
     GCheckCount.value = "" + GCheckCount.value - 1;
3. Also for each CheckBox I would add the following code under "docReady" event to get the initail count
if (this.rawValue == 1) {
     GCheckCount.value = GCheckCount.value + 1;
4. When you validate do the following
if (GCheckCount.value == "0") {
     app.alert("Please select one or more checkboxes.");

Similar Messages

  • Adobe standard 9 "one or more pages are in use and could not be deleted"

    I am an experience user from 4 to now 9 standard.  At work when extracting pages from a block scan I keep getting "one or more pages are in use and could not be deleted" it does not extract the pages but deletes some and leave some in the master document.  This happens on a regular basis and is so frustrating when trying to split a block document into individual ones. This is on adobe 9 professional... Process is 3500 pages document, open up the page tab to see the pages. Highlight the first and last page of the document you want to extract. Right click and select extract, tick the box delete after extracting.  Some times it works and a lot of the time I get the error above.  I have google’d this error and there seems to be no feedback to cover the reason as to why it creates this error and what does it mean?
    Thanks

    I use this feature once a month to extract / delete some 200 pages from an 800 page file. I found the release notes for 10.1.4 stated that this issue was fixed. I updated my Acrobat to the 10.1.4 release and i was still having the problem. I finally fixed it by disabling the Win XP compatability feature that i had enabled in the properties of the Acrobat executable. I had enabled this feature a couple of months ago as a fix to this specific problem, now it's not necessary.
    Environ: Win 7 32-bit and Acrobat X, 10.1.4.

  • "One or more pages are in use and could not be deleted" - AGAIN.

    Open a PDF file.
    Save it under a different name
    Try to delete a page
    You'll get this error:
    "One or more pages are in use and could not be deleted"
    I've had this billions of times now and the only solution that works 100% of the time is closing and re-opening the file. This leads me to believe it's something with "locking" the file while saving, but not unlocking it after done saving.
    GET THIS FIXED PLEASE because it's annoying LOADS and LOADS of people.
    As evident by the 7000+ search results for the exact phrase "One or more pages are in use and could not be deleted".
    And that's just the part of the userbase that actually reports the problem.
    There are several topics about this issue, some marked as "solved" erroneously.
    Note, I'm a paying customer, use Photoshop/Illustrator/Dreamweaver/Fireworks and Bridge during my daily work, and have had this issue for months and months across several different computers (two different workplaces, and at home) and have ran into this time and again, when all I want to do is cut a PDF into several smaller PDFs.
    Closing and re-opening your program because you're unable to fix this issue is NOT ACCEPTABLE. It's THE WORST kind of user experience, as this issue is the ONLY reason I use Acrobat at all, and it can't even do that.
    Cheers,
    - Dirk
    Ps.: Sorry, I'm very frustrated running into this time and again, and then having to wade through thick mud (your site is a UX nightmare) to report this issue, which has been report oodles of times on this board before.

    Yup.  I get this problem too.  And I'm posting in April of 2015, so I see this problem has existed a long time.  Acrobat "Pro" (ha ha) is full of stupid, annoying problems.  And the interface is clunky.  I'm going use PDF Split and Merge to remove the page I'm struggling with.  Ridiculous that Adobe Acrobat Pro cannot remove one page from a PDF file.  I am NEVER upgrading this product.  I am done with Adobe.

  • One or more application are using Itunes scripting interface

    After downloading update on ITunes 10 on windows 7 it freezes.  Or something pops up and says one or more application are using itunes scripting interface quit. 
    I tried everything.  Help.

    well, you're the first one I''m seen reporting this, so that makes me think it is unique to your PC. So I doubt an updated iTunes version is going to "fix" this.
    The way to find things like this is by using MSCONFIG as explained in these directions. But it is tedious to find it, requires a lot of PC restarting. You said it's not a big deal, so you might not want to spend the time.
    http://docs.info.apple.com/article.html?artnum=302538

  • HELP!!!  Message - (One or more applications are using the iTunes scripting interface. Are you sure you want to quit?)  How do I get this to stop?

    I bought a new Sony Vaio Laptop running Windows 8, 64bit, i7 processor.  Everytime I open iTunes and then close out, the following message occurs: (i-tunes message - One or more applications are using the iTunes scripting interface. Are you sure you want to quit?) Then it starts counting down from 20 seconds unless I just click on the (Quit) button.  How do I get this to stop?  Please be specific, I am challenged when it comes down to computers.
    Thank You

    This was extremely annoying for me, also.  I started uninstalling unneeded Sony applications to try to narrow down the problem.  It turned out not to be a Sony application... it is some functionality built into the bluetooth driver software package by Broadcom.  Uninstalling the bluetooth package (via the control panel) takes care of the problem.  Itunes also boots up way quicker.  But uninstalling it will remove features related to bluetooth and nfc.   For me, that isn't an issue, since I don't use them.  Since you said you're "computer challenged" I would probably just send an email to sony complaining about the problem.  They'll get in touch with Broadcom eventually (the manufacture of the drivers) and get the problem fixed.
    Side note: the Broadcom package is huge...  nearly 1GB in size.  Which is crazy.  I can't imagine what it does considering the size of it.  Entire operating systems can take up less storage.  Also, I have no idea how it starts an itunes plugin without placing it into the standard plugin directories.

  • Solaris 10 wont install - One or more disks are found

    Hi,
    Hi I am new to installing Solaris on a E450 server.
    I place the cdrom and type boot cdrom
    Answering questions about network region etc.
    The installer starts the installation and comes with an error:
    One or more disks are found, but one of the
    following problems exists:
    > Hardware failure
    > Unformatted disk.
    So no installation.
    How do I solve this?
    I have tried different disks and even to format the disks.
    I have had FreeBSD running on this system without any problem.

    The solution:
    If you���re trying to install Solaris (SPARC) on a disc which previously had another O/S (*BSD) on it, you will more then likely come across the following error after the system identification stage is complete:
    One or more disks are found, but one of the following problems exists:
    > Hardware failure
    > Unformatted disk.
    The problem is to do with the disc label, at the shell fireup format with the e switch
    format -e
    select the disc which you are trying to install onto, if you are told that the disc doesnt not contain a disk label, would you like to write a lablel, say yes & specify the type as SMI Label, If youre not asked about the label & presented with a menu, goto the partition section, choose label, specify the type as SMI.
    quit & reboot & all should be well

  • Adobe Pro delete pages error. One or more pages are in use and could not be deleted.

    Adobe Pro delete pages error. One or more pages are in use and could not be deleted.
    Hi, can anyone assit. I am compiling a pdf by inserting several documents and am unable to delete specific pages. I have used this function on a previous Adobe Pro version but have a problem editing.

    I use this feature once a month to extract / delete some 200 pages from an 800 page file. I found the release notes for 10.1.4 stated that this issue was fixed. I updated my Acrobat to the 10.1.4 release and i was still having the problem. I finally fixed it by disabling the Win XP compatability feature that i had enabled in the properties of the Acrobat executable. I had enabled this feature a couple of months ago as a fix to this specific problem, now it's not necessary.
    Environ: Win 7 32-bit and Acrobat X, 10.1.4.

  • Set-VmNetworkAdapterIsolation One or more arguments are invalid (0x80070057)

    Hello, not sure what am I missing? 
    Set-VmNetworkAdapterIsolation -VMName "TestGW" -VMNetworkAdapterName "IntNIC" -MultiTenantStack ON -IsolationMode NativeVirtualSubnet
    Set-VmNetworkAdapterIsolation : The operation failed.
    Failed while applying switch port settings 'Ethernet Switch Port Isolation Settings' on switch 'HNVswitch8': One or more arguments are invalid (0x80070057).
    A parameter that is not valid was passed to the operation.
    At line:1 char:1
    + Set-VmNetworkAdapterIsolation -VMName "TestGW" -VMNetworkAdapterName "IntNIC" -M ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Set-VmNetworkAdapterIsolation], VirtualizationOperationFailedException
        + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.SetVmNetworkAdapterIsolationCommand

    Hi ,
    I test the command in my environment , it worked .
    My suggestion is to remove the Vswitch that the VMs connect to then re-create a new one for them and run the cmdlet again .
    Best Regards
    Elton Ji
    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.

  • Cannot remove this sync group because one or more databases are currently provisioning,

    I have a problem with a SYNC group within my development Azure Database.
    It been stuck in "processing" state last December and has never recovered.
    I have since setup a new Sync Group to sync the data between my cloud database and my local database.  The new Sync Group is working properly.
    It bothers me that the old one is still out there, and I would just like to remove it, but I get the following error message:
    Cannot remove this sync group because one or more databases are currently provisioning, 
    re-provisioning, de-provisioning, canceling sync or synchronizing. TracingId=fe9d220c-56c7-791f-ac0f-ea26989e02a1
    Does anyone have any suggestions on how to delete the failed SyncGroup from Azure?

    Hi jstevenson72,
    How about using the DeprovisioningUtil tool? With DeprovisioningUtil tool , you can manually clean up all objects by running the deprovisioning utility from the same folder where the Data Sync Agent gets installed.
    Besides any of the following can result in a failure to delete a sync group.
    • The client agent is offline. Be sure that the client agent is online then try again. Reference : 
    SQL Data Sync Troubleshooting Guide.
    • The client agent is uninstalled or missing.
     If the client agent is uninstalled or otherwise missing:
    1. Remove agent XML file from the SQL Data Sync (Preview) installation folder if the file exists.
    2. Install the agent on same/another on-premise computer, submit the agent key from the portal generated for the agent that’s showing offline.
    • The SQL Data Sync (Preview) service is stopped.
    1. In the Start menu, search on Services.
    2. Click Services in the Programs section of the search results.
    3. Find the SQL Data Sync (Preview) Preview service.
    4. If the service status is Stopped right-click the service name and select Start from the dropdown menu.
    • A database is offline.  Check your SQL Database and SQL Server databases to be sure they are all online.
    • The sync group is provisioning or synchronizing. Wait until the provisioning or synchronizing process finishes then retry deleting the sync group.
    And for Azure issues, I would like to recommend you post the question in the Azure SQL Database forum at
    https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=ssdsgetstarted. It is appropriate and more experts will assist you.
    There is also a similar thread for your reference.
    https://social.msdn.microsoft.com/Forums/en-US/d0c50049-4d20-447e-85f9-904f7d146a40/cannot-remove-a-data-sync-group-even-dropping-the-involved-databases-and-servers?forum=ssdsgetstarted
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • When I try to delete page(s) from a PDF document I created, I geth the following message: "One or more pages are in use and could not be deleted." Any suggestions?

    When I try to delete page(s) from a PDF document I created, I geth the following message: "One or more pages are in use and could not be deleted." Any suggestions?

    I sent an email to TerraGo Support and they sent the following response: "This has bug has been discovered and our development team is quickly creating a patch to resolve the problem. The patch should be available within a week or two. For your reference, the bug number assigned to this case is: 3620. Check back in about two weeks and hopefully the patch will be available. Again, I apologize for the inconvenience."

  • Interfaces declare methods that one or more classes may or may not implemen

    Interfaces declare methods that one or more classes may or may not implement.
    true or false?

    Encephalopathic wrote:
    If you want to appear to be more than just someone scrounging for someone else to do their homeworkHe/she is what they is
    [http://forum.java.sun.com/thread.jspa?threadID=5292343]
    [http://forum.java.sun.com/thread.jspa?threadID=5283461]
    [http://forum.java.sun.com/thread.jspa?threadID=5283412]
    [http://forum.java.sun.com/thread.jspa?threadID=5279385]

  • Argument Error: One or more parameters are null.

    I am getting "javax.servlet.jsp.JspException: Argument Error: One or more parameters are null". Following are first two lines of the exception
    javax.servlet.jsp.JspException: Argument Error: One or more parameters are null.     at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:470)     at empEditById.jspService(_empEditById.java:290)
    Can anyone help me out with this.

    I don't know which part of jsp code is giving problem. Here is the complete listing
    <f:view>
      <html>
        <head>
          <meta http-equiv="Content-Type"
                content="text/html; charset=windows-1252"/>
          <title>Main</title>
        </head>
        <body><h:form>
            <p>
              <strong>Employee Edit</strong>
            </p>
            <p>
              <h:messages/>
            </p>
            <p><h:panelGrid columns="3">
                  <h:outputLabel value="Employee Id:"/>
                  <h:inputText id="empId" disabled="true"
                               value="#{b_empEditById.empId}"/>
                  <h:panelGroup/>
                  <h:outputLabel value="First Name:"/>
                  <h:inputText id="firstName" required="true"
                               value="#{b_empEditById.firstName}"/>
                  <h:message for="firstName"/>
                  <h:outputLabel value="Last Name:"/>
                  <h:inputText id="lastName" required="true"
                               value="#{b_empEditById.lastName}"/>
                  <h:message for="lastName"/>
                  <h:outputLabel value="Hire Date:"/>
                  <h:inputText id="hireDate" value="#{b_empEditById.hireDate}">
                    <f:convertDateTime pattern="dd-MM-yyyy"/>
                  </h:inputText>
                  <h:message for="hireDate"/>
                  <h:outputLabel value="Reports To:"/>
                  <h:selectOneMenu id="reportsTo"
                                    value="#{b_empEditById.reportsTo}">
                    <f:selectItems value="#{requestScope.b_empEditById.selectAllEmployees}"/>
                  </h:selectOneMenu>
                  <h:message for="reportsTo"/>
                  <h:commandButton value="Confirm" id="edit"
                                   action="#{b_empEditById.confirm}"/>
                  <h:commandButton value="Back" type="submit" immediate="true"
                                   action="back"/>
                </h:panelGrid>
            </p>
          </h:form></body>
      </html>
    </f:view>I am using Oracle jdeveloper 10g but I don't which version of JSF I am using.

  • I cannot erase alias JPeg images on a memory card so that it will not accept any more which I try to load onto it, yet there are no actual images available if I click on any of them. The error message states that one or more cannot

    Cannot delete aliases for JPeg images on a lumix camera memory card even selecting individual images anjd trying to move to trash -error35 one or more items cannot be found. No image available on clicking or if card put back into camera-"no images to disply" Yet if try to add more images, message that card is full! Any suggestions?

    Deleting from iPhoto or image capture after import should be fine and shouldn't cause any issues. Deleting from the folder view of finder, can cause issues as the camera can the image is still there. You can try emptying the trash on your mac if you deleted them via the finder, as although you've deleted it, it's only marked as trashed and not actually deleted until you empty the trash - ie it won't relieve the space taken by the files.
    If your still having issues after you try this, you may be best formating the memory card. This will wipe all data on it though, so make sure you do copy anything off that yo u want to keep! Format from the camera, so that choosing the format>erase all option from the menu of most cameras.

  • "One or more songs are not authorized" except they all are?

    I made a play list tonight that I wanted to burn to a CD for a friend. When I went to burn it, I got an error message saying "One or more of the songs in this play list are not authorized on this computer." Apple's help page said I could figure out which songs weren't authorized by trying to play them and that the unauthorized songs wouldn't play...except they all played just fine.
    First I tried rebooting. Didn't help. Then I tried removing each purchased song one at a time. Didn't help. Then I removed all the purchased songs. STILL didn't help. Finally I tried burning a play list that I'd made and burned a month ago. That one burned just fine.
    So I have a play list now made up exclusively of tracks that I imported into iTunes from CDs, none purchased from the iTunes store, and I'm still getting an error message that says "One or more of the songs in this play list are not authorized on this computer." ***? And more importantly, is there any way I can find out which freaking song is causing the problem without trying to burn each one individually to a separate CD?

    Hi,
    It seems that DCPROMO did its work without complaints, still the DFSR references remained in AD. You could refer to the article below to clean up the DFS Replication object.
    How to remove data in Active Directory after an unsuccessful domain controller demotion
    http://support.microsoft.com/kb/216498
    In additional, please refer to the following thread to troubleshoot the issue:
    DFS is not working anymore.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/953be9ef-e9e3-4885-a5c4-47fc475ba562/dfs-is-not-working-anymore?forum=winserverfiles
    Regards,
    Mandy
    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.

  • Assistance with Error - virtualmachinemanager.psd1 module cannot be imported, one or more members are not valid.

    Hello,
    We use Orchestrator, System Center 2012 version 7.1.3022.0.  I have an orchestrator script that reads through a txt file to find unresponsive virtual machines (Windows 2000 VM's cannot have the SCOM agent installed on them) so we can restart any
    machines that are not responding. 
    The step to Get Computer/IP Status runs successfully in that it reports which VM's are running and which are not running.  The next step then is to run a Powershell script that restart the VM's that are down.  Here is my Powershell Script:
    $ErrorActionPreference = "Stop"
    try
    Import-Module 'C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psmodules\virtualmachinemanager'
    Get-VMMServer -ComputerName mlivsmsscvmm
    # get vm object
    $vm = get-SCVirtualMachine | where { $_.ComputerName -eq "\`d.T.~Ed/{A255D4D8-BD4D-4FF4-9A51-B1ABA82720B9}.Computer-name\`d.T.~Ed/" }
    # save data to publish for future activities
    $OrigVMMStatus = $vm.StatusString;
    $AlertAdded = "\`d.T.~Ed/{A4B4EC8A-E4F8-40AB-9897-6906EAE139AE}.TimeAdded\`d.T.~Ed/";
    $VMName = $vm.Name;
    # we are at this point because the VM is not responding.
    # Start VM - if VM status is "Running" then Stop the VM first
    if($vm.StatusString -eq "Running")
    { Stop-SCVirtualMachine -vm $vm -force };
    Start-Sleep -s 20;
    if($vm.StatusString -eq "Stopped")
    { Start-SCVirtualMachine -vm $vm
    $VMrestart = "Yes"
    catch
    Throw $_.Exception
    Upon running the Powershell script I receive the following error in Orchestrator Log histry:
    The 'C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psmodules\virtualmachinemanager\virtualmachinemanager.psd1' module cannot be
    imported because its manifest contains one or more members that are not valid.
    This script used to run without errors and nothing has been upgraded in our environment with regards to Orchestrator, VMM, SCOM.  How would I find the 'one or more members' that is causing my issue?
    Thank you.

    Hi,
    the thing is that PowerhShell in the "Run .Net Activity" is version 2.0 (http://www.sc-orchestrator.eu/index.php/scoblog/102-running-powershell-30-with-the-run-net-script-activity)
    So, try your script embedded in PowerShell {}
    Regards,
    Stefan
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

Maybe you are looking for