protected void onDyngrdPOCCellButtonClicked(DynamicGridCell cell) { if (cell != null && cell.getType().equals(DynamicCellType.IMAGEBUTTON)) { if(cell.getRow().getValue() instanceof PlanOfCareListVo) { PlanOfCareVo record = new PlanOfCareVo(); PlanOfCareLiteVo voRow = (PlanOfCareLiteVo) cell.getRow().getValue(); record = domain.getPlanOfCare(voRow); form.getLocalContext().setSelectedRecord(record); String url = getUrlText(record); if(url != null && url.length() > 0) { engine.openUrl(url); } } } }
private void updateContextMenu() { form.getContextMenus().getNursingSummaryNEW_PLANItem().setVisible(true); if(form.dyngrdActions().getValue() instanceof PlanOfCareLiteVo) form.getContextMenus().getNursingSummaryVIEW_PLANItem().setVisible(true); else form.getContextMenus().getNursingSummaryVIEW_PLANItem().setVisible(false); }
private void viewPlan() { form.getGlobalContext().Nursing.setFormAction("VIEW"); form.getGlobalContext().Nursing.setPlanOfCareId(((PlanOfCareLiteVo)form.dyngrdActions().getValue()).getID_PlanOfCare()); engine.open(form.getForms().Nursing.PlanOfCare); }