These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Error in script!

deepusrp
Registered: Jan 12 2009
Posts: 51
Answered

Hello All,

Here is a script which is showing script error while displaying the form. I'm not finding anything wrong in this. Please let me know what is wrong.

LDCForm::docReady - (FormCalc, client)
if ((LDC_PAGE2.ActionToTake.CurrentViewer.rawValue == "Creator-Accepted") or
(LDC_PAGE2.ActionToTake.CurrentViewer.rawValue == "Creator")) then

LDC_PAGE1.ShopType.*.access = "open";
LDC_PAGE1.LocationInformation.*.access = "open";
LDC_PAGE1.LeaseDeal.*.access = "open";
LDC_PAGE1.StorageType.*.access = "open";
else
LDC_PAGE1.ShopType.*.access = "readOnly";
LDC_PAGE1.LocationInformation.*.access = "readOnly";
LDC_PAGE1.LeaseDeal.*.access = "readOnly";
LDC_PAGE1.StorageType.*.access = "readOnly";
endif

And also please let me know how can i pin point the error.

thanks

deepak

deepusrp
Registered: Jan 12 2009
Posts: 51
Anybody knows what's the error is?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Are you getting any messages from LiveCycle Designer or in Acrobat's JavaScript console?

If so, what is the message?

Since you are uising the array wild card, "*", have you checked the syntax and rules for use of this item?

I think you need to reslolve the nodes and use "[*]" to inidcate all of the dynamic node.

George Kaiser

deepusrp
Registered: Jan 12 2009
Posts: 51
Hello,

I got the solution.

There was a problem in resolving nodes. There were some nodes inside the nodes i was using...

Thanks for ur reply

Deepak.