Good Morning.
I have a flowed form that looks like this.
form1
Subform1
ACT (ExpandableTable)
Header
Row1
Row10
Footer
button
when the button in the footer is clicked a popup menu appears where users can insert a new instance of the Table, Copy current section, or delete current section. I have not been able to copy the values from the previous instance successfully when the copy current section is chosen. All fields need to be copied and there is probably 20 fields in all. Also how would I insert a new blank instance between two instances?
Here is the click event I have so far.
var cChoice = app.popUpMenu("Add a blank section", "Copy this section", "-", "Delete this section");
if (cChoice == "Delete this section"){
_ACT.removeInstance(ACT.instanceIndex);
}
else if
(cChoice == "Add a blank section"){
_ACT.addInstance(ACT.instanceIndex);
} else {
var intCount = xfa.resolveNode("ACT").instanceManager.count; xfa.resolveNode("ACT").instanceManager.addInstance(1);
xfa.resolveNode("ACT.Row1[" + intCount.toString() + "].AssetClass").rawValue = xfa.resolveNode("ACT.Row1[" + (intCount - 1).toString() + "].AssetClass").rawValue ; }