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
Hi, This is how to get the 2d array values, need to add a loop which in my sample is a for loop, see code below 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.. alert(values[x][0] +"---"+ +values[x][1]); } } rbf_selectQuery("SELECT field1#value,COUNT(field1#value) FROM object1 GROUP BY field1#value", 1000, myCallback); Hope this may help. Regards, Orchid

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