- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Mike,
I was finally able to get it to work except it will only copy the values on the first time. If I try and copy a second time it only inserts a blank instance. All of the text fields are nested in a subform named data do think that is throwing off the index?
var cChoice = app.popUpMenu("Add a blank section", "Copy this section", "-", "Delete this section");
if(cChoice == "Copy this section"){
ACT._Row1.addInstance(1)
var i = this.parent.instanceIndex
xfa.resolveNode("form1.#subform.ACT.Row1[" +(i+1) + "].data.AssetClass").rawValue = xfa.resolveNode("form1.#subform.ACT.Row1.data.AssetClass").rawValue
}
else
if(cChoice == "Add a blank section"){
ACT.Row1.instanceManager.addInstance(1)
}
else
if(cChoice == "Delete this section"){
ACT.Row1.instanceManager.removeInstance(this.parent.instanceIndex)
}
Views
Replies
Total Likes