Page 1 of 2

Set local storage not working

Posted: Tue Dec 10, 2013 5:32 pm
by Brian Irr

I am setting three Items to local storage on my details screen and then using set property on my check out screen. one of the three are showing. I can't see what I am doing wrong. the name of the app is Sales and it is shared with you.

The total price is working the other two are not????

To set my local storage I have the following set:

Code: Select all

 variable name = _quantityOrdered 
 Bind checked 
 target component = want 
 property name = text 

second one (this one works)

Code: Select all

  variable name = _totalPrice 
 Bind checked 
 target component = mobilelabel_Totalshown 
 property name = text 

third one

Code: Select all

  variable name = _item 
 Bind checked 
 target component = mobilelabel_Name 
 property name = text 

Set property

Component name = _quantityOrdered
Property Name = text
Read from local storage variable checked
value = _quantityOrdered

second one (this one works)
Component name = _mobilelabel_totalPrice
Property Name = text
Read from local storage variable checked
value = _totalPrice

third one

Component name = _mobilelabel_item
Property Name = text
Read from local storage variable checked
value = __item


Set local storage not working

Posted: Tue Dec 10, 2013 5:48 pm
by maxkatz

Did you check using browser tools if the local storage is set: http://docs.appery.io/documentation/d... ?


Set local storage not working

Posted: Tue Dec 10, 2013 7:15 pm
by Brian Irr

I did and all three are there


Set local storage not working

Posted: Tue Dec 10, 2013 7:22 pm
by Maryna Brodina

Hello! Please check component names. Did you bind localStorage variables to correct components? Please also check Property name (ensure you bind to text, not to Visible)


Set local storage not working

Posted: Tue Dec 10, 2013 7:29 pm
by Brian Irr

I did check both


Set local storage not working

Posted: Tue Dec 10, 2013 7:55 pm
by Maryna Brodina

Please check in console if localStorage variables are set.


Set local storage not working

Posted: Tue Dec 10, 2013 8:36 pm
by Brian Irr

They are set Image


Set local storage not working

Posted: Tue Dec 10, 2013 9:11 pm
by Maryna Brodina

There is no _item on the screenshot (most likely you renamed it to item). What event you use for Set property actions?


Set local storage not working

Posted: Tue Dec 10, 2013 9:20 pm
by Brian Irr

It was a click and yes I did rename it to item


Set local storage not working

Posted: Tue Dec 10, 2013 10:16 pm
by Maryna Brodina

Looks like a bug... Please delete Set property from CheckOutScreen page show and add again. Do the same for all 3 Set local storage variable actions.