Page 1 of 1

storage info show one next page

Posted: Sat Feb 07, 2015 9:31 am
by Spark Chao

hello
I set two storages when clicking the button and negative to next page.
Image

I hope the storages info can import to the labels on next page.
I set the clicking event of load(also in page show),and maping like below.
Image
Image
but it still now working,how can I do that?thanks!!!
Image


storage info show one next page

Posted: Sat Feb 07, 2015 10:39 am
by Spark Chao

sorry
I find this tutorial and try to find a way out.
but also not working!!
plz help me!!
http://devcenter.appery.io/tutorials/...
Image
Image


storage info show one next page

Posted: Sat Feb 07, 2015 10:53 pm
by Alena Prykhodko

Hello,

Please clarify this[quote:]I set the clicking event of load(also in page show),and maping like below. [/quote] .

How to achieve:

  1. You create localStorage variable from Model&Storage http://devcenter.appery.io/documentat....

  2. You set localStorage variables on first page (on button click).

  3. You retrieve it with code http://devcenter.appery.io/documentat... on load event for example. Your code seems to be fine.

    Make sure you use correct label names.
    Also check browser console whether there are errors.


storage info show one next page

Posted: Sun Feb 08, 2015 10:53 am
by Spark Chao

thanks for your reply.
can the label value be set for two variables?
for example:when click "a" button,it will set the localstorage variable for "a_test".
when click "b" button,it will also set the localstorage variable for "b_test" in the same page?
I can't let the second part happen,so I have to set two labels with same text separate.
This is inefficient.


storage info show one next page

Posted: Sun Feb 08, 2015 3:46 pm
by Illya Stepanov

Hi Spark -

[quote:]can the label value be set for two variables?
for example:when click "a" button,it will set the localstorage variable for "a_test".
when click "b" button,it will also set the localstorage variable for "b_test" in the same page?
[/quote]
Do you mean here one label and two separate buttons?

[quote:]I can't let the second part happen,so I have to set two labels with same text separate.[/quote]
Read the value form one label and store them in different localStorage variables.


storage info show one next page

Posted: Mon Feb 09, 2015 5:32 am
by Spark Chao

Illya,
yap,one label and two separate buttons.
I have to create two labels to store them in two localStorage variables.
can I do that in one label?
thanks for your kindly help!


storage info show one next page

Posted: Mon Feb 09, 2015 6:13 am
by Alena Prykhodko

Hello,

This should be possible. You will need to think this logic carefully.


storage info show one next page

Posted: Mon Feb 09, 2015 6:20 am
by Spark Chao

okI will try againthanks