I want counter value from listitem and store it in local sotrage variable .how to retrive it??
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