Yan Yi
Posts: 0
Joined: Sat Jan 25, 2014 7:38 pm

Modify properties on other pages

Hi!

Is it possible to modify properties on other pages on an event on a current page?
For example, on button click of Page1, change a label on Page2.

Of course we could do it on page show/page load of Page2, but there would be a slight lag and the previous value would be seen.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Modify properties on other pages

Hi Yan,

Unfortunatly it impossible to make changes in one page from other one directly.

For your goals you need to save value into the LSV (avaliable between all application pages) and restore value stored in LSV in other page.

JS code to store LSV:
precode
localStorage.setItem("yourLSVName", "yourLSVValue");
/code/pre
JS code to get value from the LSV and set it to the label with name "label_test":
precode
var yourLSVValue = localStorage.getItem("yourLSVName");

Appery("label_test").text(yourLSVValue);
/code/pre
Regards.

Return to “Issues”