Browsers: IE11, FF, Chrome
SmartGWT Version: SmartClient Version: v10.0p_2015-11-16/LGPL Development Only (built 2015-11-16)
I need help trying to isolate a problem I am seeing with my DataSource Fetch operation getting being called with the wrong criteria. I've tried narrowing it down in a small sample and cannot repro it there (I am only seeing this in the scope of our full product).
I have a ListGrid where I am setting the criteria (see attachment JSON1.txt - this was produced by getting the criteria object from the grid and converting it to JSON). This grid is attached to a DataSource in which we override the TransformRequest method because we have to do things like transform the criteria syntax to match that supported on the REST URL to our server).
However, when our code gets the criteria from the request and tries to convert it, the criteria seems to have been corrupted. If you look at the attachment JSON2.txt you will see the JSON representation of the criteria coming in via the request. Note that in the grid criteria in JSON1.txt the first test on job_dueDate has a "NOT". Note then that the criteria in the Fetch request (JSON2.txt) is missing the "NOT" (which totally changes the result set).
We first experienced this problem when we rolled our SmartGWT jars from the from the 2015-06-02 build to the 2015-10-31 build. If I just switch are jars back to the 2015/06/02 build everything works fine.
I have tried reproducing this in a small sample (since our app grid/datasource interaction is very large, complicated, and intertwined with many other services provided by our system). I've attached the sample (MatchNoneGridFilterIssue.java). However, the sample code is behaving a lot differently than our application. The attached file JSON3.txt shows the criteria on the grid and the file JSON4.txt shows the criteria passed to the Fetch. In the sample, they are identical and even the one on the Grid has been transformed significantly from the criteria that was actually set on the Grid. In addition, in both forms the dates are still in RelativeDate format. In our application, the grid criteria matches what as set on the grid and dates are in RelativeDate format, but the Fetch criteria is changed significantly, the "NOT" has been dropped, and the RelativeDates have been converted to an absolute Date.
I don't know why the sample is behaving so differently than our application code and I don't know why our application is dropping the NOT and the sample isn't.
I could use help finding out what is causing the issue. We are currently working with you on other grid issues that puts us in a position of needing to roll to newer releases to pick up fixes you are doing for us, but with this issue we cannot roll to the latest stuff because it is breaking other things in our product that we cannot find a way to work around.
SmartGWT Version: SmartClient Version: v10.0p_2015-11-16/LGPL Development Only (built 2015-11-16)
I need help trying to isolate a problem I am seeing with my DataSource Fetch operation getting being called with the wrong criteria. I've tried narrowing it down in a small sample and cannot repro it there (I am only seeing this in the scope of our full product).
I have a ListGrid where I am setting the criteria (see attachment JSON1.txt - this was produced by getting the criteria object from the grid and converting it to JSON). This grid is attached to a DataSource in which we override the TransformRequest method because we have to do things like transform the criteria syntax to match that supported on the REST URL to our server).
However, when our code gets the criteria from the request and tries to convert it, the criteria seems to have been corrupted. If you look at the attachment JSON2.txt you will see the JSON representation of the criteria coming in via the request. Note that in the grid criteria in JSON1.txt the first test on job_dueDate has a "NOT". Note then that the criteria in the Fetch request (JSON2.txt) is missing the "NOT" (which totally changes the result set).
We first experienced this problem when we rolled our SmartGWT jars from the from the 2015-06-02 build to the 2015-10-31 build. If I just switch are jars back to the 2015/06/02 build everything works fine.
I have tried reproducing this in a small sample (since our app grid/datasource interaction is very large, complicated, and intertwined with many other services provided by our system). I've attached the sample (MatchNoneGridFilterIssue.java). However, the sample code is behaving a lot differently than our application. The attached file JSON3.txt shows the criteria on the grid and the file JSON4.txt shows the criteria passed to the Fetch. In the sample, they are identical and even the one on the Grid has been transformed significantly from the criteria that was actually set on the Grid. In addition, in both forms the dates are still in RelativeDate format. In our application, the grid criteria matches what as set on the grid and dates are in RelativeDate format, but the Fetch criteria is changed significantly, the "NOT" has been dropped, and the RelativeDates have been converted to an absolute Date.
I don't know why the sample is behaving so differently than our application code and I don't know why our application is dropping the NOT and the sample isn't.
I could use help finding out what is causing the issue. We are currently working with you on other grid issues that puts us in a position of needing to roll to newer releases to pick up fixes you are doing for us, but with this issue we cannot roll to the latest stuff because it is breaking other things in our product that we cannot find a way to work around.
Comment