protected void onBtnSaveClick() throws PresentationLogicException { VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign(); VSPulse voPulse = new VSPulse(); voPulse.setPulseRateRadial(form.intPulseRadial().getValue()); voPulse.setPulseRateApex(form.intPulseApex().getValue()); voPulse.setIsIrregular(new Boolean(form.chkIrregularPulse().getValue())); voVitalSign.setPulse(voPulse); String[] arrErrors = voVitalSign.validate(); if (arrErrors == null) { try { domain.modifyPulse(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.getGlobalContext().Core.setVitalSign(voVitalSign); form.setMode(FormMode.VIEW); listPulse(); dateIntervalStatus(); }