screen.loadportlet 함수를 통해서 화면에 떠있는 포틀릿 인스턴스를 포틀릿 이름을 기준으로 가져오는 API이다.
Parameters | Type | Description |
---|---|---|
strPortletName | STRING | 포틋릿 이름 |
Type | Description |
---|---|
INSTANCE | 포틀릿 인스턴스 또는 null |
포틀릿 인스턴스를 포틀릿 이름을 기준으로 찾지 못한 경우 null 값이 리턴된다.
function btnTest_on_mouseup()
{
var instPortlet = factory.findmenu("PortletName");
if(factory.isobject(instPortlet)) {
screen.alert("Find Portlet");
}
else {
screen.alert("Can't Find Portlet");
}
}