Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    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>
    Click image for larger version

Name:	Screenshot 2022-07-21 102832.png
Views:	90
Size:	10.6 KB
ID:	268430
    Click image for larger version

Name:	Screenshot 2022-08-05 143806.png
Views:	73
Size:	46.6 KB
ID:	268431
    Click image for larger version

Name:	Screenshot 2022-08-05 143748.png
Views:	64
Size:	23.4 KB
ID:	268432

    Please let me know if this is a bug or if I'm implementing this incorrectly.

    Bests,
    ZHene

    #2
    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.

    Comment

    Working...
    X