Announcement

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

    bug with implicitCriteria and grid.refreshData()

    SmartClient Version: v13.0p_2022-11-17/AllModules Development Only (built 2022-11-17)

    SmartClient Version: v12.1p_2022-11-17/AllModules Development Only (built 2022-11-17)

    Chrome on MacOS

    Hello, please try this test case:

    Code:
    var implicitCriteria = {
        _constructor: "AdvancedCriteria",
        operator: "and",
        criteria: [
            {
                fieldName: "units",
                operator: "equals",
                value: "Roll"
            }
        ]
    };
    
    isc.ListGrid.create({
        ID: "dsListGrid",
        width: "100%",
        height: "100%",
        autoFetchData: true,
        dataSource: "supplyItem",
        implicitCriteria: implicitCriteria
    });
    then call dsListGrid.refreshData(), you'll see a fetch without the implicitCriteria

    #2
    Thanks for the report - we've added a fix to address this issue and you can try it out in builds dated November 20 or later.

    Comment


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

      SmartClient Version: v13.0p_2022-11-20/AllModules Development Only (built 2022-11-20)

      I see it's fixed, thank you very much

      Comment


        #4
        Hello Isomorphic actually I can't download 12.1 and 13.0 latest builds (November 20), neither using Maven, nor from the download web pages.
        Maven error:

        Code:
        [ERROR] Failed to execute goal com.isomorphic:isc-maven-plugin:1.4.5:deploy (default-cli) on project standalone-pom: Error writing file to '/var/folders/wg/89hdlq_1085dv91xzpdqn23m1nlf0h/T/standalone-pom/SmartClient/Enterprise/13.0p/2022-11-20/zip/SmartClient_v130p_2022-11-20_Enterprise.zip': Premature end of Content-Length delimited message body (expected: 402191073; received: 9217178 -> [Help 1]

        Comment


          #5
          Hello, now it's working, thank you very much.

          Comment


            #6
            Yes, we don't see any problems with the download today either - maybe you were trying to download while it was still in the process of being copied to the website?

            Comment


              #7
              SmartClient Version: v13.0p_2023-06-12/AllModules Development Only (built 2023-06-12)

              Hello, I just noticed that the same test case from post #1 issues a fetch with the same criterion repeated two times:

              Code:
              {
                  dataSource:"supplyItem",
                  operationType:"fetch",
                  componentId:"dsListGrid",
                  data:{
                      operator:"and",
                      criteria:[
                          {
                              fieldName:"units",
                              operator:"equals",
                              value:"Roll"
                          },
                          {
                              fieldName:"units",
                              operator:"equals",
                              value:"Roll"
                          }
                      ]
                  },
              ....
              Last edited by claudiobosticco; 13 Jun 2023, 05:16.

              Comment


                #8
                hi claudiobosticco

                Are you still seeing this issue? We're not seeing it by dropping your code into the online 13.0 Showcase here.

                We see one fetch with the specified implicitCriteria appearing once. Please confirm if you now see the same behavior.

                Isomorphic Support

                Comment


                  #9
                  SmartClient Version: v13.0p_2023-08-04/AllModules Development Only (built 2023-08-04)

                  Hi Isomorphic, sorry, I forgot to update this thread, this is fixed for me also, thank you very much

                  Comment

                  Working...
                  X