ADD A ROW IN A SPECIFIC AREA OF THE TABLE. Good day,
I have a button at the end of each row which adds a row and keeps the information entered. The problem is that the row is added under the last row. I want to add the row under the row that is clicked. Below is the script on each button. Can someone help me with the script?
var nNewCardIndex = this.parent.parent.parent.instanceManager.count-1;var sTargetNew = "headersubform.tablesubform.tablesubforms.Table1.Row1[" + nNewCardIndex + "]";this.resolveNode(sTargetNew).ssfs.rawValue = this.parent.parent.ssfs.rawValue;this.resolveNode(sTargetNew).dated.rawValue = this.parent.parent.dated.rawValue;
var cInput = xfa.host.response("Enter number of rows you want to add:", "Add rows", "1", false),n = parseInt(cInput, 10) > 0 ? parseInt(cInput, 10) : 1,i = 0;for (i; i < n; i += 1) {_Row1.addInstance(true);}
if (!dated.isNull) {var oRows = Table1.resolveNodes('Row1[*]'),j = this.parent.index,cDate = dated.rawValue;for (j; j < oRows.lengt