Announcement

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

    ListGridField.setFilterOperator vs FilterRow workaround needed

    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...
    Last edited by tpctech; 9 Jul 2010, 06:55.

    #2
    I have the same problem. Did you find a solution? If not, this means, it is not possible to use AdvancedCriteria / FilterOperator with the filter row?

    Jens

    Comment


      #3
      I did the same than you, but when I filter no data is display. How can you get to the server while filtering?
      Thanks

      Comment

      Working...
      X