Forum Post: RE: How to iterate a read service dataset in javascript

  • Thread starter Thread starter riche
  • Start date Start date
Status
Not open for further replies.
R

riche

Guest
OK. I figured my own question out. I didn't understand that the jsdo service stored the read service stuff. I also can't refer to it by the name given for that page, but the actual service name. Once I understood this, I tried the following, which worked. var selectedValue = Progress("selectCustomers").val(); var custRecord = MobileService_beoCustomer_JSDO.jsdo.find(function(custRec) { return (custRec.data.custNumber == selectedValue); }); if (custRecord !== undefined) { Progress('lbAddress').text(custRecord.data.address1); Progress('lbPhone').text(custRecord.data.phone); Progress('lbFax').text(custRecord.data.fax); ... }

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