Page 2 of 3

spliting an array

Posted: Fri Nov 01, 2013 12:19 pm
by Kateryna Grynko

Michael,

Please give us a public link to your app.


spliting an array

Posted: Fri Nov 01, 2013 12:28 pm
by Michael4771079

Cheers Katya,
app is shared, Star Pizza login and pass "q"


spliting an array

Posted: Fri Nov 01, 2013 2:19 pm
by Kateryna Grynko

Michael,

Could you please tell us at what page/service should we look?


spliting an array

Posted: Fri Nov 01, 2013 2:29 pm
by Michael4771079

Katy,
login with "q" and go to pizzas, and then vegetatian pizza, click checkout to fire error,

here is the error now

Image


spliting an array

Posted: Fri Nov 01, 2013 2:33 pm
by Michael4771079

Katya,
you will need to choose a pizza from select and click order btn, and then click checkout


spliting an array

Posted: Fri Nov 01, 2013 3:42 pm
by Kateryna Grynko

Michael,

In Mapping JS code replace this line:prevar o = JSON.parse(localStorage.getItem("liveorderArray"));/prewith the following:prevar o = JSON.parse(value);/preThe problem was in a local variable named "liveoderArray". It's better to use 'value' parameter in mapping.


spliting an array

Posted: Fri Nov 01, 2013 3:59 pm
by Michael4771079

Still giving error with var o = JSON.parse(value);

Image

Image


spliting an array

Posted: Fri Nov 01, 2013 8:36 pm
by Maryna Brodina

Hello Michael! We're working on it.


spliting an array

Posted: Fri Nov 01, 2013 8:37 pm
by Michael4771079

OK Maryna,
thx for letting me know


spliting an array

Posted: Fri Nov 01, 2013 8:59 pm
by Maryna Brodina

Delete code from mapping to where parameter and paste the following:
prereturn JSON.parse(value);/preCheck what you have as a result.