[progress Communities] [progress Openedge Abl] Forum Post: [4.2] - Multiple Selectquery...

  • Thread starter Thread starter IramK
  • Start date Start date
Status
Not open for further replies.
I

IramK

Guest
Hello, I am using multiple rbf_selectQuery2() functions client-side and I would like to know what the best way to use this would be. I understand that select query callbacks are asynchronous but, is there a way I could perform multiple queries within callbacks? rbf_selectQuery2("SELECT id from account where name like %google%", function accounts_callback(values) { for(var i = 0; i < values.length; i++) { rbf_selectQuery2("SELECT name, id, firstName, lastName FROM contact where accountId = " + values[0], function contact_callback(values2) { for(var j =0; j < values2.length; j++) { // get contact information } // After all the accounts are done and all the contacts are done, then I want this code to run ... }); } }); Best Regards, Iram

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