nexacro.Dataset

nexacro.Dataset

Description:
  • nexacro Dataset 객체입니다. 이 문서는 nexacro.Dataset에 추가된 메소드를 문서화하기 위한 임시 섹션입니다.

nexacro Dataset 객체입니다. 이 문서는 nexacro.Dataset에 추가된 메소드를 문서화하기 위한 임시 섹션입니다.

Members

exptApplyRowTypes :Array.<number>

Description:
  • applyChange 호출 시, 특정 rowType은 normal로 바뀌지 않도록 설정한다
    transaction 호출 완료후 applyChange가 자동으로 호출되며 모든 row의 rowType이 normal로 변경됩니다.
    exptApplyRowTypes값으로 설정된 rowType들은 normal로 변경되지 않습니다.
    등록 가능한 enum 은 nexacro.Dataset의 rowtype항목을 참조 바랍니다

Deprecated:

applyChange 호출 시, 특정 rowType은 normal로 바뀌지 않도록 설정한다
transaction 호출 완료후 applyChange가 자동으로 호출되며 모든 row의 rowType이 normal로 변경됩니다.
exptApplyRowTypes값으로 설정된 rowType들은 normal로 변경되지 않습니다.
등록 가능한 enum 은 nexacro.Dataset의 rowtype항목을 참조 바랍니다

Type:
  • Array.<number>
Example
//set
this.Dataset00.exptApplyRowTypes = [Dataset.ROWTYPE_UPDATE,Dataset.ROWTYPE_INSERT];
//get
var exptTypes = this.Dataset00.exptApplyRowTypes;

Methods

clone(filterStropt) → {nexacro.Dataset}

Description:
  • 현재 데이터셋을 복사해 새로운 데이터셋을 만든다.

Deprecated:
  • 유틸리티를 사용 바랍니다.$ds.clone
Example
var ds_clone = this.Dataset00.clone();
var ds_clone2 = this.Dataset00.clone("HI_CD=='001'");
Parameters:
Name Type Attributes Description
filterStr string <optional>

필터링문자열 입력하면, 해당 조건에 맞는 행만 복사한다.

Returns:

새로 만들어진 Dataset

Type
nexacro.Dataset

copyColumns(ds)

Description:
  • Dataset의 Column 정보를 다른 Dataset의 칼럼 정보로 변경한다

Deprecated:
Example
this.Dataset00.copyColumns(this.Dataset01);
Parameters:
Name Type Description
ds nexacro.Dataset

Column정보를 복사해올 대상

deduplication() → {nexacro.Dataset}

Description:
  • 데이터 셋의 내용중 모든 column의 내용이 중복된 행을 제거해 모든 행을 고유하게 만든다.
    변경 완료후 모든 row의 상태가 normal이 됩니다.
    모든 column의 데이터가 같은 것만 중복으로 봅니다.

Deprecated:
Example
this.Dataset00.deduplication();
Returns:

중복이 제거된 Dataset, 원본 데이터셋과 동일한 Dataset

Type
nexacro.Dataset

getColumnData(colId) → {Array.<any>}

Description:
  • 데이터 셋의 특정 column의 데이터를 Object로 만든다.

Deprecated:
Example
var obj = this.Dataset00.getColumnData("COL01");
Parameters:
Name Type Description
colId string

값을 가져올 columnId

Returns:

특정 column의 데이터 배열

Type
Array.<any>

getRowData(row) → {Object}

Description:
  • 데이터 셋의 특정 row의 데이터를 Object로 만든다.

Deprecated:
Example
var obj = this.Dataset00.getRowData(0);
Parameters:
Name Type Description
row number

값을 가져올 row

Returns:

특정 row의 데이터, {칼럼명 : 값} 형태

Type
Object

hasDeletedRow() → {boolean}

Description:
  • Dataset에 삭제된 row가 있는지 확인한다.

Deprecated:
Example
var isDeleted = this.Dataset00.hasDeletedRow();
Returns:

삭제된 행의 존재 여부

Type
boolean

hasEditedRow() → {boolean}

Description:
  • Dataset에 신규 또는 수정이 발생한 row가 있는지 확인한다.

Deprecated:
Example
var isEdited = this.Dataset00.hasEditedRow();
Returns:

신규/수정 행의 존재 여부

Type
boolean

isUpdated() → {boolean}

Description:
  • Dataset에 신규/수정 또는 삭제가 발생한 row가 있는지 확인한다.

Deprecated:
Example
var isUpdated = this.Dataset00.isUpdated();
Returns:

신규/수정 또는 삭제된 행의 존재 여부

Type
boolean

reBuild(mappingInfo) → {nexacro.Dataset}

Description:
  • 현재 데이터셋의 내용을 재구성한다.
    변경 완료후 모든 row의 상태가 normal이 됩니다.

Deprecated:
Example
this.Dataset00.reBuild({
  "EMPNO" : "USER_ID",
  "ENAME" : "USER_NM", 
  "JOB"   : "IDT_AUTH", 
  "DEPTNO" : "ORGN_CD",
});
Parameters:
Name Type Description
mappingInfo Object

재구성 정보, { oldColNm : newColNm } 형식으로 입력한다.

Returns:
  • 내용이 재구성된 Dataset, 원본 데이터셋과 동일한 Dataset
Type
nexacro.Dataset

rowToParam(row) → {string}

Description:
  • Dataset의 특정 row의 데이터를 transaction을 위한 param문자열로 만듭니다.

Deprecated:
Example
var row = this.Dataset00.rowposition;
var param = this.Dataset00.rowToParam(row);
Parameters:
Name Type Description
row number

param으로 만들 row

Returns:

parameter 문자열

Type
string

setExtUpdate(…col)

Description:
  • 특정 칼럼의 데이터를 rowType변경시 무시하도록 설정한다.
    CHK 로 생성한 체크박스등 값 변경이 일어나도 rowType가 변경되어선 안되는 칼럼을 설정합니다.

Deprecated:
Example
this.Dataset00.setExtUpdate("USER_ID");
Parameters:
Name Type Attributes Description
col string <repeatable>

update를 무시할 colId