private void populateGrid(ModalityReportsVoCollection coll) { form.grdList().getRows().clear(); //WDEV-17781 if (coll == null || coll.size() == 0) { engine.showMessage("No records found."); return; } for(ModalityReportsVo item : coll) { grdListRow row = form.grdList().getRows().newRow(); row.setclmnModality(item.getModality().getServiceName()); row.setclmnReport(item.getTemplate().getName()); row.setclmnRecording(item.getSysInfo().getCreationUser()); row.setclmnRecordingDate(item.getSysInfo().getCreationDateTime() != null ? item.getSysInfo().getCreationDateTime().toString() : ""); row.setclmnUpdating(item.getSysInfo().getLastupdateUser()); row.setclmnUpdatingDate(item.getSysInfo().getLastupdateDateTime() != null ? item.getSysInfo().getLastupdateDateTime().toString() : ""); row.setValue(item); } }
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException { ModalityReportsVo val = form.grdList().getValue(); if(val == null) return; form.getGlobalContext().Core.setModalityReport(val); engine.open(form.getForms().Core.ModalityReportDialog); }
private void enableControlButtons() { boolean enable = form.grdList().getValue() instanceof ModalityReportsVo; form.btnEdit().setEnabled(enable); form.getContextMenus().Core.getReportsToModalityNEWItem().setVisible(true); form.getContextMenus().Core.getReportsToModalityEDITItem().setVisible(enable); form.getContextMenus().Core.getReportsToModalityREMOVEItem().setVisible(enable); }