Sami
Posts: 0
Joined: Mon Jun 29, 2015 9:24 pm

Mapping index (Automatic localStorage Array mapping )

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

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

Mapping index (Automatic localStorage Array mapping )

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

Sami
Posts: 0
Joined: Mon Jun 29, 2015 9:24 pm

Mapping index (Automatic localStorage Array mapping )

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);

Return to “Issues”