Hi Isomorphic,
I use FilterBuilder with a FieldDatasource and the method setFieldPickerProperties in order to show two columns in the field combo : one is the title of the field, the other is the technical name.
I migrate recently from 2015-07 to SmartClient Version: v10.1p_2016-02-22/LGPL Development Only (built 2016-02-22).
Since then, in FilterBuilder's field combobox, it shows only one column.
See below the standalone test
Thanks
I use FilterBuilder with a FieldDatasource and the method setFieldPickerProperties in order to show two columns in the field combo : one is the title of the field, the other is the technical name.
I migrate recently from 2015-07 to SmartClient Version: v10.1p_2016-02-22/LGPL Development Only (built 2016-02-22).
Since then, in FilterBuilder's field combobox, it shows only one column.
See below the standalone test
Code:
//Create fieldDS DataSource selFieldsDS = new DataSource(); selFieldsDS.setClientOnly(true); DataSourceField idField = new DataSourceField("id", FieldType.INTEGER); idField.setPrimaryKey(true); DataSourceField propertyField = new DataSourceField("name", FieldType.TEXT); DataSourceField titreField = new DataSourceField("title", FieldType.TEXT); selFieldsDS.setFields(idField, propertyField, titreField); //Sample fieldDS data Record record1 = new Record(); record1.setAttribute("id", 1); record1.setAttribute("name", "id"); record1.setAttribute("title", "Identier"); Record record2 = new Record(); record2.setAttribute("id", 2); record2.setAttribute("name", "completeName"); record2.setAttribute("title", "Name"); selFieldsDS.setCacheData(new Record[] { record1, record2 }); //Create fieldPickerPeroperties ComboBoxItem selectFieldsItem = new ComboBoxItem(); selectFieldsItem.setOptionDataSource(selFieldsDS); selectFieldsItem.setPickListFields(// new ListGridField("title", "Title"), // new ListGridField("name", "Name")// ); selectFieldsItem.setPickListWidth(400); selectFieldsItem.setPickListHeight(300); //Create filter builder FilterBuilder filterBuilder = new FilterBuilder(); filterBuilder.setAllowEmpty(true); filterBuilder.setFieldDataSource(selFieldsDS); filterBuilder.setFieldPickerProperties(selectFieldsItem);
Comment