Page 1 of 1

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

Posted: Tue Jul 23, 2013 4:54 am
by mollyfud

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


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

Posted: Tue Jul 23, 2013 1:37 pm
by Kateryna Grynko

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.