on 07-05-2011 1:54 PM
ERROR: script failed(language is formcalc,context is xfa[0].form[0].data[0].FORM[0].
script = BODY.instanceManager.addInstance(1);
Error:accessor "BODY.instanceManager.addInstance(1)" is unknown.
I have written the code in Javascript and run at client.
Below is my sample code:
var nlength = ROW.BODY.nodes.length;
var nrow = 0;
for(var nCount=0;nCount<nlength;nCount++)
{nrow = nrow + 1;}
if (nrow == 7)
xfa.host.messageBox("Maximum allowable rows is 7","Warning",3);
else
{ROW.BODY.instanceManager.addInstance(1);
xfa.form.recalculate(1);
xfa.host.messageBox("Row added");}
Rows are getting added.
I am not getting the problem,Pls help me.
Hello all,
Thanks for your replies.
I have made Show -> click and Language -> Javascript and Run at -> Client for the button 'ADD'(this button inserts line) and in the blank space i have written the code as stated above.
Then,i have activated the form.
As per the Submit button it is working fine...
I am new to adobe forms and i have done a self-training for this..
Maybe I am doing something wrong...
Pls help.
Thanks and regards,
Raka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know that.But i have checked it a few times and the language is javascript only.
I have checked even sdn before posting it.I have found a thread on this issue.
I have tried to solve with that.But i am unable to solve the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes,the form is buit in adobe livecycle designer and it opens in adobe reader.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the form built in Adobe Live Cycle Designer and you are using Acrobat Pro to open it in offline mode?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.