화면 » Api

findportlet

Description

screen.loadportlet 함수를 통해서 화면에 떠있는 포틀릿 인스턴스를 포틀릿 이름을 기준으로 가져오는 API이다.

Parameters

Parameters Type Description
strPortletName STRING 포틋릿 이름

Return Value

Type Description
INSTANCE 포틀릿 인스턴스 또는 null

Remark

포틀릿 인스턴스를 포틀릿 이름을 기준으로 찾지 못한 경우 null 값이 리턴된다.

Example

function btnTest_on_mouseup() { var instPortlet = factory.findmenu("PortletName"); if(factory.isobject(instPortlet)) { screen.alert("Find Portlet"); } else { screen.alert("Can't Find Portlet"); } }

See Also

loadportlet
closeportlet

Viewer Ver.

9.1.1.1

Update Date

20181029