private void populateTopButtonsCombo() { form.cmbTopButtons().clear(); AppTopButtonConfigShortVoCollection coll = domain.listTopButtonConfigurations(); if(coll != null) { for (int i = 0; i < coll.size(); i++) { form.cmbTopButtons().newRow(coll.get(i), coll.get(i).getName()); } } }
public AppTopButtonConfigShortVoCollection listTopButtonConfigurations() { //WDEV-18190 ordering results from query alphabetically return AppTopButtonConfigShortVoAssembler.createAppTopButtonConfigShortVoCollectionFromAppTopButtonConfig(getDomainFactory().find("from AppTopButtonConfig as apptb order by UPPER(apptb.name) asc")); }