Brian Irr
Posts: 0
Joined: Tue Sep 17, 2013 1:25 pm

Set local storage not working

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Set local storage not working

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

Brian Irr
Posts: 0
Joined: Tue Sep 17, 2013 1:25 pm

Set local storage not working

I did and all three are there

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Set local storage not working

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)

Brian Irr
Posts: 0
Joined: Tue Sep 17, 2013 1:25 pm

Set local storage not working

I did check both

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Set local storage not working

Please check in console if localStorage variables are set.

Brian Irr
Posts: 0
Joined: Tue Sep 17, 2013 1:25 pm

Set local storage not working

They are set Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Set local storage not working

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

Brian Irr
Posts: 0
Joined: Tue Sep 17, 2013 1:25 pm

Set local storage not working

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Set local storage not working

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.

Return to “Issues”