How to check to see if any Checkboxes within a subform are checked
Hi everyone, I'm sure there is a way (possibly through JavaScript) to figure out if any checkboxes in a subform are checked but I can't seem to figure it out. I'll work on uploading my form so that it will be easier to see what I'm talking about but in the mean time here is a brief explanation of how the form is setup:
my form's hierarchy is as follows:
Form1
-(Master Pages)
-TaxRegBusInfo
-SubForm2
-Checkbox1 (it will show/hide the following subform based on if it's checked or not)
-Q2SubForm1
-CheckboxA
-CheckboxB
-CheckboxC
etc (totaling out to about 50 checkboxes)
Basically what I'm trying to figure out is how to write some code (I'm guessing a function?) that I can use so that when someone goes through the form and selects any of the checkboxes (A,B,C, etc.) in any order or combination, a text box say something like "items checked."
I've looked into the "resolveNodes" and "instanceManager" functions as well as the Adobe LiveCycle help but I've only just started to dabble in JavaScript so I can't quite seem to figure out how to use them properly. Any help or links to beginner friendly documentation would be much appreciated!
It doesn't necessarily have to show which items are checked but it would be helpful.
last night I started with this and it seems to work but I'm sure there is a better/more efficient way of doing it
var BoxCount = TaxRegQ1.chkAL.rawValue + TaxRegQ1.chkAR.rawValue + TaxRegQ1.chkAZ.rawValue
if (BoxCount>0){
Checked.rawValue = "Yes";
else
Checked.rawValue = "No";
How do you upload to this forum? Sorry i'm new to posting to the Adobe forum and can't seem to find the option.
Similar Messages
-
Also, I have a timer that lets me know how long the trigger has been active. I want to know if it is possible if that time would be reset everytime the trigger goes off.
Attachments:
Code.vi 113 KB1. Do not run using the Continuous Run button! This is intended only for certain types of trouble shooting and not for normal operation.
2. Put a while loop around your entire program. Add a stop button wired to the stop terminal of the loop.
3. Then you can replace all the feedback nodes with one shift register with the input expanded to five elements. Sum the three bottom ones for your averaging.
4. Nothing is wrong with the In Range and Coerce. You should only check it when you have data. That is what the Data Available output from Trigger and Gate is for.
5. I am not sure what you want to reset for your timer or exactly when, but it should be possible.
6. I did not try to figure it all out but you may not need the timer while loop once you wrap the loop suggested in 2 around the rest of the code. You may be able to move the shift registers to the outer loop.
Lynn -
Compile Forms on a Unix Machine (check for errors in any of the files)
Hello there,
Our organization is wrapping up the development phase and beginning our testing phase. I am responsible for the Configuration Management of our forms, menus, libraries, and reports.
We develop our code in a Windows environment (including compilation check), then we FTP the source files to a unix environment, then we compile the forms on a unix environment. We have this process down pretty well (for a couple of files at a time).
Now we would like to automate our "build" procedure. This process involves the following tasks.
1.) Extract all the source files from our vault software (PVCS)
2.) FTP all the source files to the UNIX environment
3.) Compile all the source files on the UNIX environment
4.) Test the Software on the UNIX application server
We have all of the above working (if no compilation errors occur). I am not sure how to check if any of the files errored during compilation. How can I check to see if any errors occurred during the UNIX source code compilation? I know how to do this manually (look at the output and see if the module compiled), but we are compiling approximately 200 files during our release build process. Maybe some sort of send the compilation results to an output file then search for any files that contain "not generated" (I assume if an error is generated, the text will be displayed to the user).
Is there an easy way to check if any of the forms, menus, libraries, or reports errored during the "automatic" compilation process?
Thanks,
MikeI use this script to generate .fmx files from a zipped .fmb file. This approach allows for much faster FTP because our developers are not co-located with our servers.
In addition, the tail command echoes the final line of the .err as either...
Created form file <filename.fmx>
for success or
Compilation errors have occurred.
for failure.
# SCRIPT: zipgen
# REV: 1.0.d - Used for developement
# DATE: 070515
# PLATFORM: Not Platform Dependent
# PURPOSE: This script takes a single filename variable (w/o extension)
# and it unzips the file then deletes any existing compiled
# form of that name and finally attempts to generate a new fmx
# of the variable name.
# Assign Variables
v_log=$1.err
v_zip=$1.zip
v_fmx=$1.fmx
v_fmb=$1.fmb
# Unzip File: Overwriting any existing file(s)
unzip -q -o $1.zip
# Cleanup ZIP files
rm $1.zip
# Delete existing FMX
rm $1.fmx
# Generate FMB
gen $1
# Display results
tail -1 $1.err
# End of script -
Need multiple checkboxes to autofill their values into a separate textbox as they are checked
Hi,
I have a form that requires the user to check a box regarding what articles they want mailed out to a participant depending on which client they are affiliated with and the language they speak. I am using 1 form for 7 clients. There is a separate page for each client in english and spanish, so the entire form has 16 pages with 2,988 checkboxes in the entire document (a little over 200 in each page besides the first and last page). The last page contains a textbox labled Summary, and it should provide a summary of all the items checked in the document. The first page contains a dropdown menu of each client and a radio button set with the language selection. Theoretically only one page will be populated at a time, so there will be no more than 200 checkboxes checked in the entire document.
As the articles are checked I want the checkbox name to automatically populate into the summary textbox on the last page. The code I'm using is below, but I can't get it to work.
I don't get a script error, but there is nothing populating in the summary textbox.
Can someone tell me what I'm doing wrong?
The JS I am trying to get to work is the following:
form1.SummaryPage.SummaryText::calculate - (JavaScript, client)
// Custom Calculate script
(function () {
var i, v, s = "";
// Loop through the 2988 check boxes
for (i = 1; i < 2989; i += 1) {
// Get the value of the current checkbox
v = getField("checkbox " + i).valueAsString;
// Concatenate check box value to string if not deselected
if (v !== "Off") s+= v + "\r";
// Set this field value
event.value = s;Hi,
This looks like code from an AcroForm. A Designer form does not have a getField method, try something like;
xfa.resolveNode("checkbox"+1).rawValue
And at the end use;
this.rawValue = s;
Code in a calculate event does not seem to report any errors, try testing it in a click event
Regards
Bruce -
Print only pages that are checked on page one??? Hidden is possible?
Please help. I know a little about java and acrobat but not enough to do everything I want.
I am making a form that has many pages but not all the pages apply to every event. So what I want to do is put a number of check boxes near the top of the form. When I print I only want the pages that are represented by the checked boxes to print. Even better, I would like those pages not visible at all just print. For example: Page one is a form that one would fill out: name, address, phone number, etc. Near the bottom that person would check all that apply: page A, page B, etc. That’s all he would see but when printed, it prints out the form and any of the pages that are checked.
Am I asking too much?
Thank you for any and all help.It's possible to use a script to print only certain pages, but any contiguous page ranges have to be sent as a single print job. For example, to print pages 1-5, 10-20, and the single page 50, you would have to issue 3 separate print statements.
It's possible to have non-visible pages (templates), but it's not possible to print them until they are displayed. Since Reader 11 now supports templates, it would be possible to display the selected pages in the order that you want, which would presumably be a single continous range of pages, which would then require just a single print statement, as opposed to multiple ones as described above. -
I have an iPhone 5s and in my iTunes music library have the songs checked that I want downloaded onto my phone. Instead of doing this, it is syncing all songs whether they are checked or not even tho I have the "sync only checked songs" box checked. So basically it's syncing all of the songs when I just want the checked ones on. This is very frustrating.
When your device is connected, check the tabs at the top ("Summary" "Apps" "Music," etc. Under the Music one, check to see if "Sync Music>entire music library" is checked. If it is, that may be why all the songs are syncing.
-
I have an iMac running OS 10.4.11. How can I check to see if I have the Flashback Trojan (and remove it, if I have it)? IMy Safari is also crashing frequently. Any suggestions?
Hi Barry, is this an Intel iMac, or a PPC iMac?
Disable Java in your Browser settings, not JavaScript.
http://support.apple.com/kb/HT5241?viewlocale=en_US
http://support.google.com/chrome/bin/answer.py?hl=en-GB&answer=142064
http://support.mozilla.org/en-US/kb/How%20to%20turn%20off%20Java%20applets
Flashback - Detect and remove the uprising Mac OS X Trojan...
http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
/Library/Little Snitch
/Developer/Applications/Xcode.app/Contents/MacOS/Xcode
/Applications/VirusBarrier X6.app
/Applications/iAntiVirus/iAntiVirus.app
/Applications/avast!.app
/Applications/ClamXav.app
/Applications/HTTPScoop.app
/Applications/Packet Peeper.app
If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
The most current flashback removal instructions are F-Secure's Trojan-Downloader:OSX/Flashback.K.
https://www.securelist.com/en/blog/208193454/Flashfake_Removal_Tool_and_online_c hecking_site
More bad news...
https://www.securelist.com/en/blog/208193467/SabPub_Mac_OS_X_Backdoor_Java_Explo its_Targeted_Attacks_and_Possible_APT_link
Removal for 10.5...
http://support.apple.com/kb/DL1534 -
How can i do this, Check to see if you have any network monitoring software that might be using your iCloud account to automatically send messages, such as firewalls or internet security software configured to send an alert when a potential security issue
you can try:
*Wireshark: http://www.wireshark.org/download.html -
Hi All,
Do you guys know how can I find out who created or which id created the Essbase app. Is there any file where can i go and check to see?
I am on UNIX and 11.1.2.2
Thanks all.Don't think that information is kept anywhere.
This is how the log will look like during app and db creation
[Fri Aug 02 13:35:55 2013]Local/ESSBASE0///9036/Info(1051001)
Received client request: Get Extended Application Info (from user [celvin@Native Directory])
[Fri Aug 02 13:36:04 2013]Local/ESSBASE0///8072/Info(1042059)
Connected from [fe80::a531:1592:875b:3873]
[Fri Aug 02 13:36:04 2013]Local/ESSBASE0///8072/Info(1051001)
Received client request: MaxL: Execute (from user [celvin@Native Directory])
[Fri Aug 02 13:36:06 2013]Local/ESSBASE0///5432/Info(1042059)
Connected from [fe80::a531:1592:875b:3873]
[Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1051061)
Application test loaded - connection established
[Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1054027)
Application [test] started with process id [4324]
[Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1056010)
Application test created
[Fri Aug 02 13:37:22 2013]Local/ESSBASE0///6972/Info(1051001)
Received client request: MaxL: Define (from user [celvin@Native Directory])
[Fri Aug 02 13:37:22 2013]Local/ESSBASE0///6972/Info(1051001)
Received client request: MaxL: Fetch (from user [celvin@Native Directory])
[Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1042059)
Connected from [fe80::a531:1592:875b:3873]
[Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1051001)
Received client request: MaxL: Execute (from user [celvin@Native Directory])
[Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1054014)
Database test loaded
[Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1056020)
Database test.test created
Regards
Celvin
http://www.orahyplabs.com -
Seems my MBP is starting to start up much slower and shut down a little slower. How do i check to see why this is happening?
Seems my MBP is starting to start up much slower and shut down a little slower. How do i check to see why this is happening?
-
As of sometime after September 10, 2012, at 4:40PM, I have not been receiving any mail. Not on my iPhone, iPad, iMac, or MacBookPro. The trouble shooting help on Apple's web site is designed to help ensure my devise settings are accurate. However, I moved from .Mac to .me and now to .cloud and have operating with no issues for several months on the iCloud.
How can I check to see if my mail problem is really Apple's fault rather than double checking all my devise settings ad nausiam? I feel there is a server issue with Apple because none of my devises can receive mail, however, I do not know how to validate my theory with Apple. I get an error message telling me:
Cannot Get Mail
The connection to the server failed.
Apple says there is a mail server problem affecting 1% of users. However, am I one of the 1%? If I assume I am, wait for the problem to be fixed, and then learn I was not one of the 1% and continue to have mail issues, then I will be more frustrated.I have the same problem since yesterday morning. I checked the systems status and still the same. I guess we are the 1.1% who has problem with their email.
-
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..
SaiHi
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 -
Firefox is suddenly not remembering or filling in any of my passwords. All of the appropriate boxes are checked in the options/security tab, but it won't remember any passwords and shows none saved. How do I get it to remember and fill in my passwords again?
Do you mean names and passwords in the Password Manager or do you mean that you are no longer logged on to (remembered by) websites after closing and restarting Firefox?
If the latter happens then you have a problem with cookies that are not kept or the file that stores the cookies is corrupted.
Websites remembering you and automatically log you in is stored in a cookie that you must allow: Tools > Options > Privacy > Cookies: "Exceptions"
Make sure that you do not use [[Clear Recent History]] to clear the 'Cookies' and the 'Site Preferences'.
Make sure that you not run Firefox in [[Private Browsing]] mode.
In Private Browsing mode some menu items are disabled (grayed) and some features like visited links and others are disabled and not working.
You are in Private Browsing mode if you see "Tools > Stop Private Browsing".
See [[Private Browsing]] and http://kb.mozillazine.org/Issues_related_to_Private_Browsing
See also http://kb.mozillazine.org/Password_Manager (Troubleshooting) -
How do I get to a second and subsequent pages of this forum so I can check to see if my question as been answered? Or will a recent reply (if any) appear at or near the top of a new page when I open the site?
Click on 'Your Stuff' above; this will provide quick access to your profile and other information.
(75885) -
We are interested to know how/where to check query runtimes for any Query in SAP BW?
We are interested to know how/where to check query runtimes for any Query in SAP BW?
Is there any table or program to get the query run time details per query for a particular day.Hello Sravan,
Bex statics tables would be 'RSDDSTATHEADER','RSDDSTATINFO' & 'RSDDSTATEVDATA'. all these can found in one view 'RSDDSTAT_OLAP'.
above can give historical statistic.
For current Query statics : T-code RSRT, and select debug mode select display statistics and then execute.
Once you get the output press F3(one step back), there you can see statics of the query for that particular execution.
Thanks,
Mallikarjuna
Maybe you are looking for
-
Very quiet sound in my Lumia 620
Hello, I have a problem with a speaker to talk in my Lumia 620. I have installed Windows Phone 8.1. When I bought this phone sound from this speaker was loud but now after few mounths it is very quiet. My volume is set for max. What to do with it? Pl
-
Your photo library is either in use by another application or has become unreadable?
I downloaded the iPhoto Library Manager as well as backed up my 30,000+ photos to an external hard drive so I am pretty comfortable that I still have them but iphoto is still all jammed up. Should I uninstall and reinstall it or is there some other
-
Firefox staying offline on certain websites
When my internet briefly disconnects and reconnects while firefox is open, firefox suddenly refuses to load certain websites, those websites (if its any help) are facebook, yahoo mail, and any google search page. These happen to be pages i access alo
-
Dreamweaver CS3 reforderss ColdFusion templates
Dreamweaver CS3 reorders ColdFusion template code without being asked When opening a Dreamweaver 8 ColdFusion page, Dreamweaver CS3 will reorder some ColdFusion tags. For example: 1. <cfswitch expression="#response.errorcode#"> 2. <cfcase value = "10
-
So far i've been very pleased, with this being my first mp3 player setup was easy and i dont much mind having to use the library to add mp3's; all the features are great, but my player seems to have a serious problem as of recent: whenever i select a