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.