Announcement

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

    ListGrid.implicitCriteria ignored when value is null in simple criteria

    SmartClient Version: v12.1p_2021-12-17/AllModules Development Only (built 2021-12-17)

    Chrome on MacOS

    Hello, please modify the liveFilter sample like this:

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width: 500, height: 300, alternateRecordStyles: true,
        dataSource: worldDS,
        fields: [
            {name: "countryCode", title: "Code", width: 60},
            {name: "countryName", title: "Country"},
            {name: "capital", title: "Capital"},
            {name: "continent", title: "Continent"}
        ],
        autoFetchData: false,
        showFilterEditor: true,
        filterOnKeypress: true,
        implicitCriteria: {countryCode: null}
    }).fetchData({
        _constructor: "AdvancedCriteria",
        operator: "and",
        criteria: [
            {fieldName: "countryCode", operator: "equals", value: "US"}]
    });
    You'll see that the implicitCriteria is not sent to the server

    #2
    Thanks for the report - we've fixed this for builds dated December 22 and later - advanced-crit works as expected, in the meantime.

    Comment


      #3
      Hello, just to confirm that I see it fixed, thank you very much

      Comment

      Working...
      X