protected void onBtnNewClick() throws PresentationLogicException { this.clearScreen(); form.customControlAuthoring().initializeComponent(); form.setcustomControlAuthoringEnabled(true); form.grdOperations().setValue(null); form.pdtProcedure().setValue(new PartialDate(new Date())); form.btnUpdate().setEnabled(false); form.getLocalContext().setSurgicalOperation(new PatientSurgicalOperationVo()); form.setMode(FormMode.EDIT); }