I'm looking for a workaround to make sure the filter row stay valid after a server fetch.
ListGrid :
My ListGrid is using a ListGrid.setShowFilterEditor(true) and at least one of its ListGridField has a setFilterOperator(OperatorId.STARTS_WITH). As a see, this function automatically convert the filterRow Criteria to an AdvancedCriteria.
DataSource :
My DataSource is a GwtRpcDataSource using a home made GWTCriteria object that is able to translate even a normal Criteria or an AdvancedCriteria and transport it from the client-side to the server-side.
Description :
Everything works fine since the response comes back from the server to the client.
Issue :
There's an operation occurring into the ListGrid FilterRow that change the "text" value sent to the server and used to build my GWTCriteria transport to an "AdvancedCriteria" object.
i.e. If I enter "test" into the filterRow "name" column, the server returns me the asked resultSet using the STARTS_WITH on that column but just before drawing my results into the grid, the filterRow changes automatically from "test" to "[Object Object]".
That makes any subsequent calls to the filtering functions to returns an invalid resultSet because it's now using "[Object Object]" as the asked "name".
***************
Question :
I really don't what to use the FilterBuiler here... So can you give me some hints about where should I override the function that replace the filterRow value using the auto-created AdvancedCriteria?
If you can tell me where, I'll try to extract the fieldNames / values from the AdvancedCriteria to convert it as a normal Criteria... (it will be ok because the AdvancedCriteria upper-level is using "AND" anyway).
Thanks for the reply...
ListGrid :
My ListGrid is using a ListGrid.setShowFilterEditor(true) and at least one of its ListGridField has a setFilterOperator(OperatorId.STARTS_WITH). As a see, this function automatically convert the filterRow Criteria to an AdvancedCriteria.
DataSource :
My DataSource is a GwtRpcDataSource using a home made GWTCriteria object that is able to translate even a normal Criteria or an AdvancedCriteria and transport it from the client-side to the server-side.
Description :
Everything works fine since the response comes back from the server to the client.
Issue :
There's an operation occurring into the ListGrid FilterRow that change the "text" value sent to the server and used to build my GWTCriteria transport to an "AdvancedCriteria" object.
i.e. If I enter "test" into the filterRow "name" column, the server returns me the asked resultSet using the STARTS_WITH on that column but just before drawing my results into the grid, the filterRow changes automatically from "test" to "[Object Object]".
That makes any subsequent calls to the filtering functions to returns an invalid resultSet because it's now using "[Object Object]" as the asked "name".
***************
Question :
I really don't what to use the FilterBuiler here... So can you give me some hints about where should I override the function that replace the filterRow value using the auto-created AdvancedCriteria?
If you can tell me where, I'll try to extract the fieldNames / values from the AdvancedCriteria to convert it as a normal Criteria... (it will be ok because the AdvancedCriteria upper-level is using "AND" anyway).
Thanks for the reply...
Comment