화면 » Api

getportletpopupnamebyindex

Description

현재 화면에서 로드한 인덱스에 해당하는 포틀릿 팝업 이름을 반환하는 API이다.

Parameters

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

Return Value

Type Description
STRING 인덱스에 해당하는 포틀릿 팝업 이름

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
findportletpopupbyindex

Viewer Ver.

23.2.8.1

Update Date

20230208