Page 1 of 1

Using Master Detail concept works but when I go back the master list gets lost

Posted: Sun Mar 30, 2014 4:12 pm
by pakbull6772540

I have created a master - detail (2 pages) as per the tutorial (San Francisco bay muni).

I am downloading the Master data from the database and load the _id to hand over to the detail which then downloads the detail. Works great.

However, when I go back from the detail page using the "Back" button in header, the query results of Master page are gone and I have to run the query again.
Question: How can I save the Master query results so that I am not running the query again and again.

Thank you.


Using Master Detail concept works but when I go back the master list gets lost

Posted: Sun Mar 30, 2014 6:05 pm
by Igor

Hello,

You can save query string to localStorage variable then map localStorage variable to service request parameter and execute service on page show event.