Expand my Community achievements bar.

Adding/Deleting table rows

Avatar

Former Community Member

I have created a dynamic table that adds and deletes rows using the button object and using the following Javascript: Row1.instanceManager.addInstance(1); and Row1.instanceManager.removeInstance(1); But clicking on the "Add Row" button creates a row at the bottom of the table. How do I create a new row immediately below the row I am currently in? My goal, depending on the button clicked, is to either delete the row I'm in, or add a row immediately below the row I'm in.

2 Replies

Avatar

Former Community Member

Here is a sample that I created showing the basics of how to add a row to a specific location.

Hope it helps

Paul

Avatar

Former Community Member

This works nicely. You've made me a hero at work. I thank you very much!