protected void onBtnSaveClick() throws PresentationLogicException { VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign(); VSRespirations voResp = new VSRespirations(); voResp.setRespRate(form.intResRate().getValue()); voVitalSign.setRespiratory(voResp); String[] arrErrors = voVitalSign.validate(); if(arrErrors == null) { try { domain.modifyRespiration(voVitalSign); } catch (StaleObjectException e) { engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); refresh(); return; } } else { engine.showErrors("Validation Errors", arrErrors); return; } form.setMode(FormMode.VIEW); listRespirations(); //form.btnUpdate().setEnabled(false); form.getLocalContext().setvitalSign(voVitalSign); displayRecord(form.getLocalContext().getvitalSign()); dateIntervalStatus(); }