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

resolveNode problem

suewhitehead
Registered: Jun 3 2008
Posts: 232

I am trying to make a button in a repeating subform become visible when clicking a button not on that repeating subform.

I can get this one to work for the first instance

var cNode = xfa.resolveNodes("form1.P1.ItemSet[0].RemoveLineBtn");
cNode.presence = "visible"

But when I try to use the [*], like this, it doesn't work.

var cNode = xfa.resolveNodes("form1.P1.ItemSet[*].RemoveLineBtn");
cNode.presence = "visible"

The message I get is "GeneralError: Operation failed.
XFAObject.resolveNode:1:XFA:form1[0]:P1[0]:DocTop[0]:ShowCreatorBtns[0]:click
SOM expression returned list when single result was expected"

What am I doing wrong and how do I fix it?

Appreciate your help.

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You will need a for loop to solve this problem.

http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=18739 descibes a way for this.
of couse you will have to redesign the script for your form, but generally it has the same context, so this might be not a problem.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs