pakbull6772540
Posts: 0
Joined: Sun Mar 30, 2014 4:08 pm

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

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.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

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

Hello,

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

Return to “Issues”