mollyfud
Posts: 0
Joined: Mon Feb 11, 2013 5:16 am

How do you set data on the detail page of an iPad Master/detail screen if the detail screen used is already loaded?

Okay, I have had a good look for this answer and it is probably my lack of knowledge on Javascript that is stopping me working this out (so I appologies in advance). So I have an iPad Master/detail screen. I want have the left side do multiple different types of lookups and load a detail screen depending on the type of lookup. I call out a service and get a result, use the set content page to load the page and in the show page event of the detail window, I load the data from the service. Works great!

This issue comes if I want to search for new data of the same type (i.e. the detail page type I am using is the same as the last call) and so no new show is done! As I said above, I am lacking in javascript knowledge but would imagine there is either:
1) A way to reference the detail page from the Master page to set the data from the master page.
2) I need to setup event listeners on the detail page to do this work and call it from the master page.

Any advice on this greatly welcomed.

TIA

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How do you set data on the detail page of an iPad Master/detail screen if the detail screen used is already loaded?

Hi,

You should process Page Show event and store variables values in localStorage. That is, on Page Show event (that is called for all the pages) you should check existing and values of localStorage variables and then fill components on page.

Return to “Issues”