private void populateResultScreenFromData(SurgicalOperationNotesListVoCollection listResults) { clearResultScreen(); if (listResults == null || listResults.size() == 0 ) { engine.showMessage("No results were found. Please alter your search criteria", "No results", MessageButtons.OK, MessageIcon.INFORMATION); return; } for (int i = 0 ; i<listResults.size() ; i++) { addRowToGrid(listResults.get(i)); } form.lblTotal().setValue(Integer.toString(listResults.size())); }
private void populateResultScreenFromData(SurgicalOperationNotesListVoCollection listResults) { clearResultScreen(); if (listResults == null || listResults.size() == 0 ) { return; } for (int i = 0 ; i<listResults.size() ; i++) { addRowToGrid(listResults.get(i)); } form.lblTotal().setValue(Integer.toString(listResults.size())); }
@Override protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException { String[] errors = validateSearchCriteria(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return; } clearResultScreen(); SurgicalOPNotesFilterVo searchFilter = populateSearchDataFromScreen(); form.getGlobalContext().Clinical.setSurgicalOpNotesFilter(searchFilter); SurgicalOperationNotesListVoCollection listResults = domain.listSurgicalOpNotes(searchFilter); if (listResults == null || listResults.size() == 0 ) { engine.showMessage("No results were found. Please alter your search criteria", "No results", MessageButtons.OK, MessageIcon.INFORMATION); return; } populateResultScreenFromData(listResults); if (searchFilter != null && searchFilter.getColumnSortOrder() != null) { setSortOrderForColumn(searchFilter.getColumnSortOrder().getColumnId(), searchFilter.getColumnSortOrder().getSortOrder()); } updateControlState(); }