Announcement

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

  • Blama
    replied
    Hi blingslingkling123,

    that would be SimpleType, but I don't know if it supports <validOperators>.
    Isomorphic: It would be great to have a list of what attributes and tags SimpleType supports in .ds.xml.
    Is it the "Instance API" docs from the link, so <validOperators> would work?

    Best regards
    Blama

    Leave a comment:


  • Isomorphic
    replied
    We've made a change to solve this issue. The fix will be available in the nightly builds as of tomorrow May 28th.

    Regards
    Isomorphic Software

    Leave a comment:


  • zhene
    replied
    After applying the validOperators, I get this error:

    Example Field:
    Click image for larger version

Name:	Data Source Field with Operators.png
Views:	263
Size:	44.5 KB
ID:	268082

    Error:
    Click image for larger version

Name:	Console Error Log.png
Views:	256
Size:	128.6 KB
ID:	268083

    None of the operators are displayed, just a basic right click option menu.

    Leave a comment:


  • zhene
    replied
    Thank you so much!

    Leave a comment:


  • Isomorphic
    replied
    No, the package summary explains how array-type fields appear in XML:

    https://smartclient.com/smartgwtee-r...e-summary.html

    So:

    Code:
    <field ... >
        <validOperators>
            <value>contains</value>
            .. other values ...
        </validOperators>
    </field>

    Leave a comment:


  • zhene
    replied
    Cool, so something like this should be valid?

    Code:
    <field name="mark" type="text" length="100" required="true" defaultOperator="contains" validOperators="contains,notContains,equals,notEqual,startsWith">
    UPDATE: This does not work. Please provide an example of the correct usage.
    Last edited by zhene; 26 May 2022, 11:09. Reason: Usage failed

    Leave a comment:


  • Isomorphic
    replied
    validOperators is something you can set in the .ds.xml file. You will not it is documented as such (in the ".serverds" package that describes .ds.xml properties).

    https://smartclient.com/smartgwtee-r...validOperators

    Leave a comment:


  • zhene
    replied
    yes, I currently use DataSourceField.setValidOperators(), but I am wondering if there is a simpler way, like setting it while defining the field name in the ds.xml. I just don't like having to set all the operators in the DS after. Might be a nice enhancement if not.

    Thanks

    Leave a comment:


  • Isomorphic
    replied
    You may looking for DataSourceField.validOperators?

    Leave a comment:


  • zhene
    started a topic Setting Filter Operators in ds.xml file

    Setting Filter Operators in ds.xml file

    Hello,

    I am wondering is there is a way to set the operators inside the <field></field> section of the ds.xml file when defining the fields?

    Something like
    Code:
    <field name="field_name" type="integer" operators="EQUALS,IN_SET,NOT_IN_SET..."/>
Working...
X