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

InstanceManager Issue

Avatar

Not applicable

Hi,

i am having 3 subforms in a page.

1. My first subform is "untitle subform".  - contain button "add table" in a new subform.

2. Second is "Subform[0]" and  - contain a table

3. Third is subform[1]. - contain table

Problem : when i press the "Add table" button , the new subform (containing the new table) , create in between  Subform[0]" and Subform[1]" ,

instead after the subform[2].

Scripting (java script)

----------------------------------------------------------------------


var   sSubformSOM = "xfa.form.VariableList.page2.form";


var   oSubform = xfa.resolveNode(sSubformSOM);


var   sParentSOM = oSubform.parent.somExpression;


var   sManagerSOM = sParentSOM + "._" + oSubform.name;


var  oManager = xfa.resolveNode(sManagerSOM);

if((nMaxCount == "-1") || (nSubCount < nMaxCount)) {

var oNewInstance = oManager.addInstance(1);

}

Pls suggest a solution for this.

1 Reply