private void displayChartTypes(ChartTypeShortVoCollection coll) { form.dyngrdChart().getRows().clear(); for (int i = 0; i < coll.size(); i++) { DynamicGridRow row = form.dyngrdChart().getRows().newRow(); DynamicGridCell cell = row.getCells().newCell(form.dyngrdChart().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING); cell.setWidth(600); cell.setReadOnly(true); cell.setValue(coll.get(i).getName() + " - " + (coll.get(i).getDescriptionIsNotNull() ? coll.get(i).getDescription() : "")); row.setValue(coll.get(i)); //dummy record row.getRows().newRow(); } }
private void doSearch() { String name = form.txtName().getValue(); if(name != null) name = "%" + name + "%"; ChartTypeShortVoCollection coll = domain.listChartType(name, form.qmbDataset().getValue()); displayChartTypes(coll); }
private void populateChartTypes() { form.lyrMain().tabCharting().cmbChartType().clear(); ChartTypeShortVoCollection chartTypes = domain.listChartTypes(); if (chartTypes != null) { for (int x = 0; x < chartTypes.size(); x++) { addChartType(chartTypes.get(x)); } } }
public ChartTypeShortVoCollection listChartTypes() { return ChartTypeShortVoAssembler.createChartTypeShortVoCollectionFromChartType(getDomainFactory().find("from ChartType as ct where ct.isActive = 1 order by ct.name")); }