Is there a way to.....
Trigger the Activate Page PeopleCode when returning from a Secondary Page.
Scenario, the main page sorts by default by NAME. As fields are entered onto the page, we calculate a SORT_FIELD. Upon Save, we trigger PeopleCode as such:
&PAGENAME_RS.Sort(PAGENAME.SORT_FIELD, "A", PAGENAME.NAME, "A");
so that the primary sort becomes the SORT_FIELD and the NAME becomes a secondary sort field.
The page has a push button that lets the user go to a secondary page to enter free form text, and we coded an AUTOSAVE function there as well.
PeopleCode on the Secondary Page has DoSaveNow() and EndModal(0).