Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How can I delete rows in a table from the bottom?

Avatar

Former Community Member
I have table that I add rows to and I want to remove rows starting with the last row. For example if I have a table with 20 rows how do I remove rows 16-20. I can't figure out how to do this.
1 Reply

Avatar

Former Community Member
The following script would/should/might delete the last 4 rows of a subform named 'itemsSub' : (or actually deletes the last row 4 times hopefully!)



for (var f = 0; f<4; f++)



{

_itemsSub.removeInstance(itemsSub.all.length - 1);

}