This test document has a table which mostly works like I want, but the delete row buttons always delete the second row regardless of which row's delete button is clicked. The code is:
Table1.Row1.instanceManager.removeInstance(1);
How do I modify this so that if you click the delete button on row 5 (for example), it deletes row 5, not row 2. Now it always deletes row 2, no matter which button is clicked.
Also, after I row is deleted, how I can I get the rows to re-number automatically? The code for auto numbering is:
this.rawValue = this.parent.index +1;
I had tried using this code:
var count = detail.instanceManager.count;
detail.index + 1;
for autonumbering (per this blog entry by BR001), but I could never get it to work on my table, although it works great in his example. In BR001's example, he has one delete button per row and it always deletes only the row that it's on and it always renumbers automatically. I'd like to use his method, but I've spent hours trying to figure out where I'm failing to follow his example.