Skip to Main Content
Feature Request FR-3568
Product Area APIs
Status CLOSED

3 Voters

New Interactive Grid model method getSelectedRecordsOrdered to get the records in the selected order

horluklgg Public
· Jan 2 2024

Idea Summary
model.getSelectedRecords return an array with the selected records ordered by the row number as it's displayed in the grid. However, sometimes you need the records in order they were selected by the user

Use Case
You have to process the data in the order the user selected it  

Preferred Solution (Optional)
Extend the model with a method, e.g. getSelectedRecordsSequence or getSelectedRecordsOrdered, that returns the data in the correct order, like this example, the SEQUENCE Column shows the right sequence I selected the records in the grid and the Sal Sum Seq column sum the Salary in that order:

Thanks,
Lukas

We reviewed this idea carefully, and while it was interesting, we concluded that due to all the internal implications we need to take into account, it is unlikely to make its way into APEX.

Comments

Comments

  • jan.kvetina OP 1.5 years ago

    You can store selected rows in an array by DA on IG. Then pass this through an item to your process.

  • horluklgg OP 1.5 years ago

    Hi jan, yes that‘s the way I do it, but after I‘ve done this on many pages, I thought it would be nice to have this method, because you don‘t need to handle with Page Items and it should be easy to implement this method directly into the model.