My project extends platform entity Group by adding one attribute “numberOfUsers”, and the dataSource groupsDs has the following query:
select g from sec$Group g order by g.numberOfUsers DESC
The ExtGroup is a “tree” component in xml:
<vbox id="topBox"> <tree id="groupsTree" height="100%"> </tree> </vbox>
When open ExtGroup browse screen the first time, all entries in the tree are displayed correctly. But when create a new group by clicking menu “Create->New”, fill in elements on Edit screen and return to Browse screen, the newly created group is NOT at the expected position of “order by g.numberOfUsers DESC” (I assume the ordering applies to all children group entries). My questions are:
How to update ExtGroup Browse screen to reflect “order by g.numberOfUsers DESC” when Edit screen is closed?
Why groupsDs is NOT available in ExtGroup Browse controller (It is NOT in the list when using Alt+Inject). Is there any way to access groupsDs and get the list of entries from it?
I found on forum this thread looks similar, but I still can not figure out the problem I am facing: