Hi ,
I have a question regarding FilterBuilder. First, I would like to describe briefly the application.
I have built a visual query builder for toxicological data. This visual query builder generates a SPARQL query. The generation of SPARQL was, surprisingly, easy to code. There is a screenshot attached to this post. On the screenshot, you can see a ComboxItem. There is something amazing about this combobox: there are 143,372 entries in the valueMap of this combobox and it runs perfectly smoothly!!!
To have comboboxes in the FilterBuilder, I customized the fields of the datasource as shown below:
TextMatchStyle.SUBSTRING of the combobox is ideal when I select "contains" as an operator in the filterbuilder. But now, if I would select "starts with" as the operator, I would like to have TextMatchStyle.STARTS_WITH for the combobox. Also, for the operator "ends with", I would like to have TextMatchStyle.ENDS_WITH, which does not exist, but that is another story.
So, my question is, how could I dynamically change the TextMatchStyle of my combobox when the user changes the operator?
I am using SmartGWT 3.1 LGPL.
Bruno
I have a question regarding FilterBuilder. First, I would like to describe briefly the application.
I have built a visual query builder for toxicological data. This visual query builder generates a SPARQL query. The generation of SPARQL was, surprisingly, easy to code. There is a screenshot attached to this post. On the screenshot, you can see a ComboxItem. There is something amazing about this combobox: there are 143,372 entries in the valueMap of this combobox and it runs perfectly smoothly!!!
To have comboboxes in the FilterBuilder, I customized the fields of the datasource as shown below:
Code:
ComboBoxItem comboBoxItemWithSubStringMatch = new ComboBoxItem(); comboBoxItemWithSubStringMatch.setTextMatchStyle(TextMatchStyle.SUBSTRING); DataSourceTextField hispathologyFindingsField = new DataSourceTextField("HistopatologyFinding", "Histopatology finding"); hispathologyFindingsField.setEditorType(comboBoxItemWithSubStringMatch);
TextMatchStyle.SUBSTRING of the combobox is ideal when I select "contains" as an operator in the filterbuilder. But now, if I would select "starts with" as the operator, I would like to have TextMatchStyle.STARTS_WITH for the combobox. Also, for the operator "ends with", I would like to have TextMatchStyle.ENDS_WITH, which does not exist, but that is another story.
So, my question is, how could I dynamically change the TextMatchStyle of my combobox when the user changes the operator?
I am using SmartGWT 3.1 LGPL.
Bruno
Comment