[progress Communities] [progress Openedge Abl] Forum Post: Re: How To Avoid Duplicated Records

  • Thread starter Thread starter Siddeshwar
  • Start date Start date
Status
Not open for further replies.
S

Siddeshwar

Guest
Hi caylali, Here is sample code, I tried to get record count for field 'myfield' having value 'myvalue', Edit below query with respective tokens for your object. var count=rbv_api.selectQuery("SELECT count(*) FROM secondobj where myfield='myvalue'", 1); if(count[0][0]>0) { //skip , record already exists } else { //create record } Thanks, Siddeshwar.

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