//API를 통해 항목 추가
ui_genter.addItem("속성값", "이름", 0 ) ; //0번째
ui_genter.addItem("속성값", "이름", 2 ) ; //1번째
Event를 사용한 col을 선택할 때는 col 번호 보다는 해당 col의 id를 사용 할 것
scwin.ui_memberList_oncelldblclick = finction(row, col, colId){
//사번인 경우 더블클릭 했을 때 이벤트 발생
if(colId== "EMP_CD"){
alert("사번");
}
};
scwin.ui_memberList_onafteredit = function(row,col,value) {
var _colId = this.getColumnID(col);
//이름인 경우에만 수정 뒤 글자 색 변경
if(_colId == "EMP_NM"){
ui_memberList.setCellColor(row, col, "blue");
}
};
// data 추가 후 data 건수 표시
scwin.dc_userInfoList_oninsertrow = function (info) {
ui_totRowCount.setValue(dc_userInfoList.getRowCount());
};
// data 삭제 후 data 건수 표시
scwin.dc_userInfoList_onremoverow = function (info) {
ui_totRowCount.setValue(dc_userInfoList.getRowCount());
};
// 조회 후 data 건수 표시
scwin.dc_userInfoList_ondataload = function () {
ui_totRowCount.setValue(dc_userInfoList.getRowCount());
};
Delete - 삭제 상태로
// 삭제 - rowStatus : D 처리
scwin.btnDelete_onclick = function(e) {
var rowidx = ui_memberList.getFocusedRowIndex();
dc_userInfoList.deleteRow(rowidx);
};
Remove - 리스트에서도 완전 삭제
// 삭제 - DataList에서 삭제
scwin.btnRemove_onclick = function(e) {
var rowidx = ui_memberList.getFocusedRowIndex();
var removeObj = dc_userInfoList.removeRow(rowidx);
console.log(removeObj);
};
CRUD는 한 번에 처리하는 경우가 많기 때문에 보통은 Delete를 많이 쓴다.
원하는 checkBox에 해당하는 DataList의 값을 클릭

해당데이터의 속성 중 ignoreStatue : true 설정
