6번을 풀자
먼저 form - Property 에서 strpindex 를 2로 바꾸고 시작!
this.Dataset6_cancolumnchange = function(obj:nexacro.NormalDataset,e:nexacro.DSColChangeEventInfo)
{
// 성명에 입력한 값이 다른 Row 에 있니???
var nCnt = obj.findRowExpr("FULL_NAME == '" + e.newvalue + "' && currow != " + e.row);
// nCnt >= 0 면 있다! (indexRow 는 0 부터 시작이라 0도 1개 있는거임)
if(nCnt >= 0) {
this.alert("Data Duplication");
// 중복이라서 반영 안할거야
return false;
}
// trace("cancolumnchange");
};
원치않는 이벤트가 발생하여 성능 저하
this.btn_Exe6_5_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo)
{
this.Dataset6.set_enableevent(false); // Dataset6 의 이벤트를 off 하는 Property
for(var i=0; i<10; i++) {
this.Dataset6.setColumn(i, "FULL_NAME", "Modify2");
}
this.Dataset6.set_enableevent(true); // Dataset6 의 이벤트를 on 하는 Property
};