ComboBoxItem buildings = new ComboBoxItem("buildings", "Building Names") {
public Criteria getPickListFilterCriteria() {
Criteria criteria = new Criteria();
criteria.setAttribute("dependentString", grid.getSelectedRecord().getAttribute("company"));
criteria.setAttribute("dependentString2", "office");
return criteria;
}
};
buildings.setOptionDataSource(CommonLookupDS.getLookupDS(LookupTypesClient.LOOKUP_BUILDINGS_BY_TYPE));
buildings.setValueField("key");
buildings.setDisplayField("value");
buildings.setWidth(125);
buildings.setWrapTitle(true);
buildings.setAutoFetchData(false);
buildings.setRequired(true);
Once the getPickListFilterCriteria method is overridden this comboBox stops filtering for user input. It shows all the options regardless of the user input. How to fix this?
This can be done by appending criteria to datasource For an example
and prevent from overriding getPickListFilterCriteria method
I put all my criteria settings to datasource and it works. So, in method transformRequest I do