[ Nexacro-FrameWork1. step3.메뉴와 업무화면간 parameter 연동 ]

 

 

1. tabFrame.xfdl 화면
   1. 정의 : 화면을 open시 gds_menu.param 컬럼에 존재 하는 값을 업무화면에서 받아 사용하기
   2. 기존 fn_menuOpen() 함수 변경 (이미 존재)
      . 추가 script
        newChild.biz_param    = sParam;
      . 추가 위치
        newChild.biz_menuId   = sMenuId; -> script의 다음줄
2. workMain.xfdl 화면
   1. 기존 fn_onload()함수 변경 (이미 존재)
      . 추가 script
        this.fv_param  = this.getOwnerFrame().biz_param;
      . 추가 위치
        this.fv_menuId = this.getOwnerFrame().biz_menuId; -> script의 다음줄
   2. 2개 함수 생성
      . fn_getParam()  : 업무화면에서 호출되어 param 값을 넘겨줄 function
      . fn_getMenuId() : 업무화면에서 호출되어 menuId값을 넘겨줄 function
   3. script
  
//업무화면에서 parameter값을 얻고 싶을 경우 호출되는 function
this.fn_getParam = function(){
 return this.fv_param;
}
//업무화면에서 menuid를 얻고 싶을 경우 호출되는 function
this.fn_getMenuId = function(){
 return this.fv_menuId;
}

3. commonCode.xfdl 화면
   1. 정의 : 업무화면에서 menu에서 넘겨준 param값을 확인하기
   2. Event 1개 생성
      . fn_onload
   3. script

this.fn_onload = function(obj:Form, e:nexacro.LoadEventInfo)
{
 trace(this.parent.fn_getParam());
}

Posted by 농부지기
,