Announcement

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

    FilterBuilder and canFilter

    Hi Isomorphic,

    Version : Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-07-03/PowerEdition Deployment 2014-07-03)

    I'm looking to the best way to hide a DataSourceField of the DataSource in the FilterBuilder.

    I try with the canFilter option set to false, and the fied is hidden in the in the FilterBuilder.
    But when I try to use this field in a DSRequest, this field is not more included in the query.

    Is there another way to hide a DataSourceField in the FilterBuilder.

    Regards,

    Julien

    #2
    Hi jperin,

    did you already try to setCanFilter(false) for your ListGridField in Java?

    Best regards,
    Blama

    Comment


      #3
      Hi Blama,

      Yes I had try the setCanFilter(false) on the ListGrid, this result of this one is only for the FilterEditor.
      It is not reflected to the FilterBuilder.
      I associate the DataSource of the ListGrid to the FilterBuilder like this

      Code:
      DataSource dataSource = listGrid.getDataSource();
      builder.setDataSource(dataSource);
      Ju

      Comment


        #4
        The easiest way to get what you need is probably to create a new DataSource that inheritsFrom your real dataSource, set canFilter(false) on the field in this new DataSource, and then use *it* for the FilterBuilder, rather than the real one.

        Alternatively, see the doc for FilterBuilder.fieldDataSource

        Comment

        Working...
        X