Michael Droll
Posts: 0
Joined: Wed Mar 04, 2015 5:05 am

Set Property of component to Storage from JavaScript

How do I set the property of a label to a read from storage in JavaScript?
Instead of doing this by the service success event. Having to do this for 25 labels 5 times each (125 Times) VIA the UI will take me forever (and wear out my finger!). Since my service is running a JS can this be done from the JS?

If so, how? An example of what the JS looks like would be awesome.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Set Property of component to Storage from JavaScript

Hello Michael,

You can use JS for setting label text from storage variable via JS:

var text = Apperyio.storage.variableName.get();
Apperyio("labelName").text(text);

where variableName - storage variable name
labelName - label name

Return to “Issues”