IT/Nexacro 17

[Nexacro 17] 팝업 자식창에서 부모창으로 다시 값 넘겨주기

Dev. Sean 2022. 7. 15. 15:53
반응형

팝업창안에서 

this.parent.opener.parentArr["id"] = "0005";

를 해주고

this.fn_select_confirm = function()
{
	var param = new Array();
	if(this.ds_customerInfo_list.findRow("ROW_CHK","1")>=0)
    {
    	param["custTel"] = "1234";
    	this.cmn_openPopUpWindow("POPUP0005","POPUP0005.xfdl",500,335,"modal",param,'callbackFunc_pop');
    }
    else
    	this.alert("선택한 항목이 없습니다");
}


this.callbackFunc_pop = function(strID, variant)
{
	switch(strID) {
    	case "POPUP0005" :
        	this.alert(this.parentArr["id"]);
        	break;
    }
}

콜백함수에서 데이터가 넘어온걸 확인 할 수 있다.

반응형