찾고자 하는 팝업을 인덱스로 가져오는 API이다.
Parameters | Type | Description |
---|---|---|
nPopupIndex | short | 팝업 인덱스 |
Type | Description |
---|---|
INSTANCE | 팝업 화면 인스턴스 또는 null |
nPopupIndex 파라미터는 팝업 화면이 로드된 순서를 말한다.
팝업 화면 로드는 비동기로 동작하며, 팝업 화면 로드 완료시 팝업의 부모 화면에 on_popupload 이벤트가 발생한다.
function btnTest_on_mouseup()
{
var instPopup = factory.findpopupbyindex(0);
if(factory.isobject(instPopup)){
var txtDateFieldName = instPopup.getinstancebyname("txtMenu");
if(factory.isobject(txtDateFieldName)){
txtDateFieldName.settext("데이터넣기");
}
} else {
screen.alert("팝업화면을 찾지 못했습니다.");
}
}