Page 1 of 1

Mapping index (Automatic localStorage Array mapping )

Posted: Fri Jul 17, 2015 8:52 am
by Sami

Hello,

I'm mapping an Array from local storage to a list component using the automatic Appery io mapping wizard.

It's possible to retrieve the name of the index generated by appery.io's mapping to use it in specific JS in the mapping ?

thx


Mapping index (Automatic localStorage Array mapping )

Posted: Fri Jul 17, 2015 7:12 pm
by Pavel Zarudniy

Hi Sami,
Unfortunately it is not clear enough. Could you please provide more details, screen shots would also help.


Mapping index (Automatic localStorage Array mapping )

Posted: Mon Jul 27, 2015 7:42 pm
by Sami

ok, i've find a way to retieve the value of the index i was looking for (index of looping in the mapping wizard when i map an array to a list) :

var indexElement=element[0].attributes._idx.nodeValue;

indexElement=indexElement.substring(1);

var indexvalue = parseInt(indexElement,10);