Hi All,
I'm a beginner of Appian, and I would like to know how to save a row order in a grid.
In a grid in an interface, I put a arrow for up and down to move rows.
I need to save the order, so the changed order should be saved and updated to DB.
I should create a column in DB to save a row order, but it does not work.
What I want to do is ... when I change the row order by clicking arrow icon and the order is changed, I would like to save the ordering information for next time. When a user open the window next time, a user requires to see the row which was changed by user clicking an arrow.
I need your help.....
Best regards,
Discussion posts and replies are publicly visible
saitoy6477 said:I should create a column in DB to save a row order, but it does not work.
What exactly "does not work"?
In short my typical design is like this:
- "sort" field in DB
- up/down swaps the items in the underlying data
- then iterates on the list to renumber the sort value all items
- then write the data back to the DB
To get started, a good standalone example is this: https://docs.appian.com/suite/help/24.3/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html