Counter value from list
I want counter value from listitem and store it in local sotrage variable .how to retrive it??
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/
I want counter value from listitem and store it in local sotrage variable .how to retrive it??
Hi Pritu,
Do you want to calculate a number of list items? Do you generate them using a service?
yes!! i create a list using service..
I want to get counter value in local storage varible
Pritu,
If your service returns an array, add this JavaScript handler on service Success event:prelocalStorage.setItem("count", data.length);/preThis code saves an array length in a localStorage variable 'count'.
If the service returns an array inside of another object (for example 'obj'), you can use:predata.obj.length/pre
thnks!! for your reply