Page 1 of 1

loop through json array

Posted: Mon Jul 08, 2013 9:54 am
by steve5588065

I have an Appery database List_service which returns all the rows in the database.
In the success event I need to loop thru the rows to get a total Price (sum of cost column)

success event javascript
var m = JSON.stringify(data);
alert(m.length.toString());

The alert shows 161 when there is only 1 row in the database

if I use the following
for (var i=0, l=m.length; i}]

what am I doing wrong

regards
Steve


loop through json array

Posted: Mon Jul 08, 2013 11:25 am
by Kateryna Grynko