본문 바로가기
WEB/넥사크로

넥사크로nexacro - getCaseCount 문으로 중복 체크

by iiaii 2020. 11. 18.
반응형

getCaseCount 함수를 사용하여 

dataset 데이타셋 을 for문 이나 루프문 돌릴 필요없이 

중복 체크 할수 있다 

 

var AAA= this.dsList.getColumn(this.dsList.rowposition, "COLUM1");
var BBB = this.dsList.getColumn(this.dsList.rowposition, "COL2");

var checkColumn = "COLLL1=='"+AAA+"'"
  + "&& COLLL2=='"+BBB +"'"
  + "&& COLLL3=='3'";

//중복값 체크할 내용을 변수에 담아 

//getCaseCount 함수로 중복 체크 한다.

if(this.dsList.getCaseCount(checkColumn) > 1){

trace("중복값이 있습니다.");

return;

}

반응형