// 마지막 컴포넌트 데이터셋 업데이트

// 아래 script는 frame이 존재하면서, MDI 에서  화면 [x] 닫기 버튼을 클릭 시 활용

this.objApp = this.gfn_getApplication();

 

var curComp = this.objApp.av_FrameWork[sFormId].form.getFocus();
if (this.gfn_isNotNull(curComp)) {
   if (curComp instanceof nexacro.Calendar
      || curComp instanceof nexacro.Combo
      || curComp instanceof nexacro.Edit
      || curComp instanceof nexacro.Grid
      || curComp instanceof nexacro.ListBox
      || curComp instanceof nexacro.MaskEdit
      || curComp instanceof nexacro.Radio
      || curComp instanceof nexacro.Spin
      || curComp instanceof nexacro.TextArea) {
      curComp.updateToDataset();
    }
}

 

var pForm  = nexacro.Form.prototype;

pForm.gfn_getApplication = function()
{
var objApp = nexacro.getApplication();
return objApp;
}

Posted by 농부지기
,