Working with addInstance


i have worked adding more instances of subforms adding more end.

how add instance after subform?

for example, if have 6 instances of subform , want insert instance of subform after number 3 how do it?

or can done?

hi steven, need change current position addition:

var osubform = this.resolvenode("subform2");
var onewinstance = osubform.instancemanager.addinstance(1);
var nindexfrom = onewinstance.index;
var nindexto = this.parent.index + 1;

// invoke instancemanager insert subform below current one.
osubform.instancemanager.moveinstance(nindexfrom, nindexto);


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments