do you already know how to sort by the transient attribute programmatically and just ask where to put the code to have it sorted when the table is displayed the first time?
Or do want to know how to sort by the transient attribute programmatically?
I want to know how to sort by the transient attribute pragmatically. Can you please help?
you can do "in-memory" sorting.
You could implement it like this:
// get VO and make sure all required rows are fetched from DB
// sort rows by transient attribute
// read current query mode
int oldQueryMode = myVO.getQueryMode();
// perform in-memory sort
// set query mode back to original value (only needed if you want to be able to get new rows from DB)
Hope this helps.
1 person found this helpful
Linda's suggestion is spot on.
Another - less known but declarative - option is to go to the iterator binding in the PageDef file (actually use the binding editor in JDev). Press the "pencil" button on the menu (or the iterator) and switch to the SortCriteria tab. Select "Ascending" or "Descending" based on your initial needs.
Thanks Linda and Frank. It worked...