Monday, May 31, 2010

ADF:Sorting a Programmatic/Transient ViewObject

Often we use Transient ViewObject to store In-Memory data to represent in UI or manipulate business logic.
We may need to sort these Transient ViewObjects based on certain attribute.

MyTransVO.setSortBy("AttributeName");
MyTransVO.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
MyTransVO.executeQuery();

No comments: