- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
On the "-" button use this.parent.parent.index to get the index of the row the button is in. the "parent" reference is used to move back up the hierarchy so if you had say a subform around the button in the cell you'd have to add another parent to find Row1.
So to delete the row try: _Row1.removeInstance(this.parent.parent.index);
Or this should work too: _Row1.removeInstance(Row1.index);
The underscore is a shortcut to the Instance Manager. You may want to avoid using it in object names, I'm pretty sure it's caused me problems in the past, I only use camel case for object names now (avoid dashes too).
You don't need to specify the entire path to the object you're trying to access. The "-" button being below Row1 can see Row1.
Views
Replies
Total Likes