XDataSet » Api

getlinkobjects

Description

해당 데이터셋에 링크되어 있는 컴포넌트 인스턴스들을 배열 형태로 반환한다.

Parameters

Parameters Type Description
nLinkType short [옵션] 링크 유형 (기본값: 0)
strColumnId STRING [옵션] XDataSet 컬럼 ID (기본값: null)

Return Value

Type Description
Array 연결된 컴포넌트 인스턴스 배열

Remark

nLinkType 파라미터는 아래와 같은 값을 가질 수 있다.

nLinkType 파라미터는 옵션 파라미터로 지정하지 않은 경우, 0값으로 처리되어 수행된다.

strColumnId 파라미터에 XDataSet Column ID를 지정한 경우, 해당 컬럼 ID에 링크된 컴포넌트만을 처리한다. 링크된 컴포넌트 그리드인 경우에는 비교하지 않는다.

Example

function bb_on_mouseup(objInst) { var nCount, arrObjs, instObj; // link_data 속성을 통해서 링크된 컴포넌트 배열을 구함 arrObjs = xDataSetID_01.getlinkobjects(); factory.consoleprint("link object count : " + arrObjs.length); for(nCount = 0;nCount < arrObjs.length;nCount++) { instObj = arrObjs[nCount]; if(instObj == null) { continue; } factory.consoleprint("object kind : " + instObj.getcontrolkind()); } // picklist_linkdata 속성을 통해서 링크된 컴포넌트 배열을 구함 arrObjs = xDataSetID_01.getlinkobjects(1); factory.consoleprint("link object count : " + arrObjs.length); for(nCount = 0;nCount < arrObjs.length;nCount++) { instObj = arrObjs[nCount]; if(instObj == null) { continue; } factory.consoleprint("object kind : " + instObj.getcontrolkind()); } // link_data/picklist_linkdata 속성을 통해서 링크된 컴포넌트 배열을 구함 arrObjs = xDataSetID_01.getlinkobjects(2); factory.consoleprint("link object count : " + arrObjs.length); for(nCount = 0;nCount < arrObjs.length;nCount++) { instObj = arrObjs[nCount]; if(instObj == null) { continue; } factory.consoleprint("object kind : " + instObj.getcontrolkind()); } }

Viewer Ver.

9.1.1.1

Update Date

20220119