• Vignesh Dhakshinamoorthy
    February 6, 2018 at 2:26 pm #4969

    So does the me.ui.getIndex() always return the correct row index while removing a record from the table?

    We are seeing some erratic behavior when the table is paginated. The index returned is different from the actual row we are trying to delete.

    Our code looks like this:

    SPARK Support
    February 6, 2018 at 2:52 pm #4970

    Hi Vignesh,

    The UI getIndex() returns the index of the user interface.  This will be in the order the UI’s are drawn.  If the Table is Paginated, the rows may be drawn out of order as the user clicks the page buttons.

    You may want to look at getRowForView() and getRecordIndex() on the Table JS documentation:

    https://support.salientprocess.com/docs/enterprise/Table.html

    Calling view.getRow(me).getData() will return the data for that row which can be passed to getRecordIndex().

    However, the Table does include a built-in Delete button configuration option.

    Regards,

    Stephen P.

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

You must be logged in to reply to this topic.

Start typing and press Enter to search