• Matthew Oatts
    June 12, 2015 at 11:44 am #227

    On a table row – can I replace the “add row” with a button?

    Attachments:
    You must be logged in to view attached files.
    SPARK Support
    June 12, 2015 at 9:43 pm #236

    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:

    add row result

    Table Control

    AppendElement Table

     

    Note: The On Click event code is…   ${Table4}.appendElement({})

    Attachments:
    You must be logged in to view attached files.
    SPARK Support
    June 18, 2015 at 9:04 am #243

    See the Adding Rows to a Table Dynamically article here for additional information.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search