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...
Continue reading...