I have a grid with several labels in it and I want to use a REST service to the label text to PUT into an array.
This is the javascript I am trying to use in my mapping by sending the label text to my array:
var newData = [];
Appery('labelName').each( function() {
newData.push([{"Event_Details":{"Event_Locations": $(this).text(),"Time":"No Response","Lat":"No Lat","Lng":"No Lng"}}]);
console.log(newData);
});
return newData;
Is .each the correct thing to be using? It only give me the text from the first label in the grid, now the 2nd or 3rd.