Forum Post: RE: create 2d arrays with Rollbase API and store in client-side variables

  • Thread starter Thread starter Orchid Corpin
  • Start date Start date
Status
Not open for further replies.
O

Orchid Corpin

Guest
UPDATE: Storing 2d array to variable var clientArray = []; function myCallback(values) { for(x=0; x values.length; x++) { //[x][0] represent your 1st parameter in the query //[x][1] represent your 2nd parameter in the query and so on.. clientArray[x] = values[x][0] +"---"+ +values[x][1]; } alert(clientArray); } rbf_selectQuery("SELECT field1#value,COUNT(field1#value) FROM object1 GROUP BY field1#value", 1000, myCallback); Regards, Orchid

Continue reading...
 
Status
Not open for further replies.
Back
Top