A comboBox has its own setting for what operator to use - comboBox.textMatchStyle, which defaults to startsWith. You should be able to set that in the ComboBoxItem properties.
However, we do agree that a ComboBoxItem should probably honor the defaultOperator if textMatchStyle hasn't been explicitly set. We'll make that change, but it's low priority given that textMatchStyle is the documented way to configure the operator.
Announcement
Collapse
No announcement yet.
X
-
defaultOperator not working
Hi,
I am trying to set defaultOperator inside the DataSourceField xml file and noticed that it doesn't work when setEditorProperties(new ComboBoxItem()) is used on the field.
Code:<field name="testCase" defaultOperator="equals" type="text" length="100" includeFrom="CodeSQL.description"> <title>Test Case</title> <validOperators> <value>equals</value> <value>notEqual</value> <value>inSet</value> <value>notInSet</value> <value>isBlank</value> <value>notBlank</value> </validOperators> </field>
Please let me know if this is a bug or if I'm implementing this incorrectly.
Bests,
ZHeneTags: None
Leave a comment: