그리드 » Api

getexceluploadresultinfo

Description

엑셀 파일 내용을 그리드에 로드 결과에 대한 상세 정보를 리턴한다.

Return Value

Type Description
class 엑셀 업로드 결과 상세 정보

Remark

리턴되는 정보 오브젝트는 아래의 구조와 같다.

{
    upload_result: 0,      // 업로드 정상 여부 (1: 정상, 1이외의 값: 오류)
    grid_sub_row_index: 0, // 오류가 발생한 그리드 서브행 인덱스
    grid_column_index: 0,  // 오류가 발생한 그리드 열 인덱스,
    grid_column_title: "입금액",  // 오류가 발생한 그리드 헤더 타이틀
    grid_append_mode: false,      // Append 모드 여부
    excel_file_name: "DATA.xlsx", // 업로드한 엑셀 파일 이름
    excel_start_row_no: 1,        // 업로드 시작 엑셀 행 
    excel_start_column_name: "A", // 업로드 시작 엑셀 열
    error_data_row_offset: 3,      // 오류 데이터 행 인덱스 (excel_start_row_no 값 기준)
    error_data: "INVALID",    // 오류 데이터 내용
    error_code: "ERR_CODE",   // 오류 코드,
    error_message: "ERR_MSG"  // 오류 메시지 내용
}

Example

function btn_loadexcel_on_mouseup(objInst) { grdList.getexceluploadresultinfo(); }

See Also

uploadexcelex

Viewer Ver.

9.1.1.1

Update Date

20190318