Announcement

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

    DataSourceField.getCanFilter()

    In the case where the "canFilter" attribute is not set in the ds.xml for a particular datasource field, we were expecting the DataSourceField.getCanFilter() to return NULL. However, "DataSourceField.getCanFilter()" returns "getAttributeAsBoolean("canFilter")", which is converting the NULL to Boolean.FALSE, and incorrectly reporting that the field cannot be filtered.

    Of course, we can deal with this by using the following code, however, we think there is a problem here.

    Code:
                Object canFilterObj = field.getAttributeAsObject("canFilter");
                Boolean canFilter = (canFilterObj == null) || ((canFilterObj instanceof Boolean) && ((Boolean) canFilterObj).booleanValue());
    SmartClient Version: v9.1p_2014-07-06/Pro Deployment (built 2014-07-06)
    FF 24.7.0 ESR

    Regards
    Last edited by stonebranch2; 31 Jul 2014, 11:08.

    #2
    We're looking into a solution.

    Comment


      #3
      A fix has been applied to SGWT 4.1p/5.0d to avoid converting the null. Check the next nightly builds.

      Comment

      Working...
      X