Announcement

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

    grid filter uses iEquals when there's an implicitCriteria

    SmartClient Version: v13.0p_2022-01-15/AllModules Development Only (built 2022-01-15)
    SmartClient Version: v12.1p_2022-01-12/AllModules Development Only (built 2022-01-12)

    Chrome on MacOS

    Hello, please modify the 'filter' sample like this:

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:300, alternateRecordStyles:true,
        dataSource: worldDS,
        filterOnKeypress:true,
        implicitCriteria:{
                _constructor: 'AdvancedCriteria',
                operator: 'or',
                criteria:[
                    {fieldName:"continent", operator:"equals", value:"Europe"},
                    {fieldName:"continent", operator:"equals", value:"Asia"}
                ]
            },
        fields:[
            {name:"countryCode", title:"Code", width:60},
            {name:"countryName", title:"Country"},
            {name:"capital", title:"Capital"},
            {name:"continent", title:"Continent"}
        ],
        autoFetchData: true,
        showFilterEditor: true
    })
    if you type 'mona' in 'countryName', you'll see that no records match, because it's generating an advanced criteria with iEquals instead of iContains:
    Code:
    {
      fieldName:"countryName",
      operator:"iEquals",
      value:"mona"
    }

    #2
    Thanks for the report - the problem was an internal call to DS.combineCriteria() that didn't pass in the textMatchStyle from the request.

    Please retest with a build dated January 20 or later.

    Comment


      #3
      SmartClient Version: v12.1p_2022-01-20/AllModules Development Only (built 2022-01-20)

      I see it's fixed, thank you very much.

      Comment

      Working...
      X