Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Livecycle Designer ES8.2

Not applicable
Hello,



I've got the following problem:

I want to remove and add a subform using "setInstances". In the sample files, there is an interactive purchase order example using a JavaScript and although I use the same syntax, nothing happens.



Question:

Do I have to make any specifications beforehand? What other failure sources could there be?



The subform which is to be added/removed by clicking on a button (Butoonchildren) is called "children", and the JavaScript used is the following:



form1.personal.childrenHeader.Buttonchildren::click - (JavaScript, client)



if (_children.count == 0) {

_chilren.setInstances(1);

this.resolveNode ("caption.value.#text").value = "Clear Subform";

}

else {

_children.setInstances(0);

this.resolveNode ("caption.value.#text").value = "Add Subform";

}



The important thing for me is to add/remove the subform; it is less important whether the text shown on the button changes or not.



Help is greatly appreciated - thank you!
3 Replies
pguerett
Level 10
Level 10
Are you sure that your form is set up to be dynamic?
Not applicable
Hello,



I've got the following problem:



I just started using Livecycle Designer ES8.2.

I have a program with 140 dynamic forms, coded by somebody no longer around.



I am only able to see a few (30) of the forms in the "Design View" from all the members in the Hierarchy Pallette (140). Is there a filter or a function limiting the members been display in the Design View?



Thanks
Thomas_McConnac
Level 4
Level 4
Check their presence in the bottom of the Object palette (Shift+F7)