Matthew Oatts
On a table row – can I replace the “add row” with a button?
SPARK Support
There is no add row button that comes with the table control. However, SPARK makes it very easy to add a row by using our improved event handling. This means that you can add a row to a table with one line of code placed in ANY event that comes with a control… not just a button!
One of the simplest ways to add a row to add a SPARK button to your coach (or coach view) and then use an invoke the appendElement() method for the table. See the attachments for an example where we have an ‘Add’ Button for our ‘Table4’ table control:



Note: The On Click event code is… ${Table4}.appendElement({})
SPARK Support
See the Adding Rows to a Table Dynamically article here for additional information.