private void setScreenToEdit(boolean bEnabled) { form.setMode(FormMode.EDIT); form.getContextMenus().hideAllGenericGridMenuItems(); form.getContextMenus().getGoalPlanningMeetingInviteesADDFAMILYMEMBERItem().setVisible(true); form.getContextMenus().getGoalPlanningMeetingInviteesADDHCPItem().setVisible(true); enableClinTeamMemberMenu(); if(bEnabled) form.getLocalContext().setGoalPlanningVo(null); else{ if(form.ctnDetails().cmbOutcome().getValue()!=null && form.ctnDetails().cmbOutcome().getValue().equals(GoalPlanningOutcome.CANCELLED)) form.ctnDetails().cmbCancReason().setEnabled(true); if(form.getLocalContext().getGoalPlanningVo().getMinutesIsNotNull()) { StringBuffer path = new StringBuffer(); path.append("Minutes: "); path.append(form.getLocalContext().getGoalPlanningVo().getMinutes()); form.ctnDetails().lblMinutes().setValue(path.toString()); form.ctnDetails().lblMinutes().setTooltip(path.toString()); } } }
protected void onCmbOutcomeValueChanged() throws ims.framework.exceptions.PresentationLogicException { if(form.ctnDetails().cmbOutcome().getValue()!= null && form.ctnDetails().cmbOutcome().getValue().equals(GoalPlanningOutcome.CANCELLED)) form.ctnDetails().cmbCancReason().setEnabled(true); else { form.ctnDetails().cmbCancReason().setValue(null); form.ctnDetails().cmbCancReason().setEnabled(false); } }