Hi Crystal,
You need to map a whole array. Here is an example: http://docs.appery.io/documentation/u...
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Crystal,
You need to map a whole array. Here is an example: http://docs.appery.io/documentation/u...
Hello,
I have to map a whole array and it can display the elements.
There is another question when I click the ListItem it will go to the next page and at the same time I want save the data of this gridcell. I can save the copName,Address and Distance into the localStorage but I can only save the first data of the lat & lng of the localStorage. So could you help me?
Hi Crystal,
How do you map now? How do you save lat & lng in localStorage?
Please post screenshots.
Hello,
I'm sorry it took so long to reply. The map that I have changed like this:
The screenshorts below is that I save lat & lng in localStorage.
When I click the mobilelistitem it will navigate to another page and at the same time save the store's name , store's address and the lat&lng of the store in localStorage and the page will display the store's name , store's address and the lat&lng of the store that I saved in localStorage.
The store's name and address can display but the lat & lng can not. How to resolve the problem?
Hi Crystal,
This is because you map an array of values 'StorePoint' as I can see in your screenshot. To save this array run this JavaScript code on List item click event:prevar arr = new Array();
$(this).find("[name=mobilelabel_15]").each(function(i){
if (i0) {
arr.push($(this).text());}
});
localStorage.setItem("storePoint",JSON.stringify(arr));/preThis will save all values of a label 'store' in a localStorage variable 'storePoint'.
Thanks! I have solved the problem.
hi Crystal - I recognized some of the characters in your app and see that it is for a store in Shanghai? I live in Shanghai and am building an app with Appery. If you ever want to meet and discuss apps, let me know ![]()
---Sean
Thank you very much. If I have any problems I will ask you.