Hi All.
This is probably something obvious (or obviously wrong way of doing it).
I have my Main page, a user logs in an
}
d stuff changes on that page. The user navigates to another page, something gets done there and I return to the Main page with "return pageWithName()". Problem is that "return pageWithName()" creates another instance of the Main page. I need my previously instantiated page.
I get the context ID of the Main page using this.context().contextID() before I go to the second page.
Then I tried this when I finish with the second page:
return session().restorePageForContextID(returnToPageWithThisContext);
This returns null, going back to the second page.
How do I get my previously instantiated Main page back? (there is no browser back link, I need to do this in the code)
Thanks for any ideas (or the 'duh' solution).