반응형
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;
}
반응형
'WEB > 넥사크로' 카테고리의 다른 글
[넥사크로] 파일 업로드시 확장자 체크 (javascript) -보안 (0) | 2020.08.11 |
---|---|
파이썬 으로 넥사크로 데이터셋 소스 생성 하기 (0) | 2019.04.03 |
넥스크로14 피벗 예제 - 동적 그리드 생성 (0) | 2019.01.25 |
(넥사크로 14) 그리드 필수 값 체크 - 공통 함수 (0) | 2018.12.13 |
(넥사크로 14) lookupExpr 함수, - 넥사크로 라이브러리함수 (0) | 2018.12.13 |