화면 » Api

findportletpopupbyindex

Description

화면에서 로드한 포틀릿 팝업중에서 인덱스에 해당하는 포틀릿 팝업 화면 인스턴스를 반환하는 API이다.

Parameters

Parameters Type Description
nIndex short 포틀릿 팝업 인덱스

Return Value

Type Description
INSTANCE 포틀릿 팝업 화면 인스턴스 또는 오류 발생시 null

Example

function btnTest_on_mouseup() { var i, count, tab_screen, portlet_popup_screen; // 탭에 링크된 화면 인스턴스를 구함 tab_screen = tab.getchildscreeninstance(0); // 팝업 화면 갯수를 구함 count = tab_screen.getportletpopupcount(); for (i = 0; i < count; i++) { // 팝업 화면 이름을 구함 factory.consoleprint("Name = " + tab_screen.getportletpopupnamebyindex(i)); // 팝업 화면 오브젝트를 구함 portlet_popup_screen = tab_screen.findportletpopupbyindex(i); if (portlet_popup_screen) { factory.consoleprint("URL = " + portlet_popup_screen.getscreenurl()); } } }

See Also

getportletpopupcount
getportletpopupnamebyindex

Viewer Ver.

23.2.8.1

Update Date

20230208