Page 1 of 1

Clear Local Storage data

Posted: Thu Feb 12, 2015 12:02 pm
by skmc ap

Hi,
I am working on an app that search user details from data base. and bind the details in the different page so i took the service response of user data to local storage and binding it new page on button click. when i search for the first user it is fine when i do it for different user the old data is sitting local storage and displays old data. if i tried the same with out local storage and bind response directly to same page it works well. so can u help me on clearing the local storage when new i had new query


Clear Local Storage data

Posted: Thu Feb 12, 2015 7:14 pm
by Evgene Karachevtsev

Hello,

Could you provide us with the following:
1) Print screens of your mapping
2) Print screens which could show how do you search second user?


Clear Local Storage data

Posted: Fri Feb 13, 2015 4:06 am
by skmc ap

Clear Local Storage data

Posted: Fri Feb 13, 2015 10:17 am
by Evgene Karachevtsev

skmc ap,

Could you please provide us with screenshot of request parameters of your service too?


Clear Local Storage data

Posted: Fri Feb 13, 2015 10:27 am
by skmc ap

Evgene Karachevtsev,

I Am trying to replicate the Search app I.e given in appery.io tutorial Docs.. and trying to bind the response in Different Page

Image


Clear Local Storage data

Posted: Fri Feb 13, 2015 11:21 am
by Evgene Karachevtsev

Could you please explain why do you map service response to a page and local storage at one time? Could you try to map service response to local storage on success and separately map local storage with new page?


Clear Local Storage data

Posted: Fri Feb 13, 2015 2:12 pm
by Maryna Brodina

Hello!

Could you also clarify what event do you use? Is it PageShow or PageLoad one? Please try using PageShow.


Clear Local Storage data

Posted: Sat Feb 14, 2015 3:47 am
by skmc ap

Hi,

It works Fine When i changed PageLoad to PageShow

Thanks Evgene Karachevtsev ,Maryna Brodina