on 01-27-2010 7:05 AM
Hi all,
I wanted to know if it is possible to use context variables in formcalc. I wanted to use those variables in "if else" condition in formcalc scripting language. Please post the sample code also as i am new to adobe forms.
Regards,
Vinod
Hello,
start here: http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
and look for the strings ) like xfa.record. You´ll find examples and ready-to-copy-code.
Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Each variable define in the context can be used on the layout of the form and/or in script linked to fields.
This can be done in formcalc or in javascript language , without any problem . You have only to acess the correct variable in the script.
For getting variable in a script you must define the complete name of the variable, example "Myform.Header.Data.Myvariable" get access to variable MyVariable define in the context under nodes Header/Data .
Hope it's help you
regards.
hi Bertrand,
I am still getting message as "Accessor is unknown" when i am trying to use context variables. May be i am making some syntax error. My form context name is "ysampleform" and the variable name is "flag". I want to use this variable in an if condition. Can u plz give me the exact syntax for the above parameters. Thanks in advance.
Regards,
Vinod
To address the variable just use the binding string (Object - Binding). But do not forget to use the whole path, sometimes not all parts of the path can be found in a single element binding. Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinod,
I also faced the same problem I am not sure that wheter it can be used or not but I could not use that
so I got a workaround solution take the context variable in the form as you do not want to display that make the visibility Hide
now use the variable in the calculation.
hope this helps.
Regards
Bikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.