Announcement

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

    Issue using DataSourceTextField.setValidOperators() not working in FilterBuilder

    Hi,

    I have an issue when trying to limit the operator list in the FilterBuilder for specific fields.

    I set the restrictions on the fields in my DataSource, however they are not reflected in the FilterBuilder dropdown.

    For this input...

    Code:
    DataSourceTextField omsName = new DataSourceTextField("omsName");
    omsName.setValidOperators(OperatorId.CONTAINS, OperatorId.NOT_CONTAINS, OperatorId.EQUALS, OperatorId.NOT_EQUAL, OperatorId.STARTS_WITH, OperatorId.ENDS_WITH, OperatorId.EQUALS_FIELD);
    fields.add(omsName);
    I get...
    [Equals, Not equals, Matches other field] in the dropdown.

    Am I using the API correctly?


    I'm using
    Smartgwt 2.5 (07.06.11), FF 4.0.1, Chrome 13.0

    First saw the issue in an end of April nightly, this was the reason I updated to last night's.

    #2
    I am having the same problem with contains, between, starts with, Ends with, and not contains.

    Comment

    Working...
    X