@Override protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { CatsReferralReportsVo catsReferral = form.getGlobalContext().RefMan.getCatsReferralReports(); if (catsReferral != null) { form.dtim1().setValue(catsReferral.getCATSReportSentDate()); } }
@Override protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException { if (form.dtim1().getValue() == null) { engine.showMessage("CATS Report document sent date is mandatory!"); return; } CatsReferralReportsVo catsReferral = form.getGlobalContext().RefMan.getCatsReferralReports(); catsReferral.setCATSReportSentDate(form.dtim1().getValue()); form.getGlobalContext().RefMan.setCatsReferralReports(catsReferral); engine.close(DialogResult.OK); }