[progress Communities] [progress Openedge Abl] Forum Post: Re: How To Treat The Original...

  • Thread starter Thread starter jsniemi79
  • Start date Start date
Status
Not open for further replies.
J

jsniemi79

Guest
Cayla, When you use the selectQuery api, the result set, even if it is a single record, is stored in an array. You'll need to check if there are actual values in the array instead because even if no record exists, there is still data in the array. If all you care about is that a record exists with the same name, something like this should work. var m_Name = '{!name#text}'; var isExist = rbv_api.selectQuery("SELECT firstName FROM Merchant where name=?", 1, m_Name); if (isExist.length > 0) { return true; } else return false;

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