Announcement

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

  • SelectItem multiple grid apperance

    Hello,

    It seems there is a small bug in SelectItem with multiple values from another DataSource.

    In this configuration:
    Code:
    SelectItem item = new SelectItem();
    
    item.setOptionDataSource(...);
    
    item.setMultiple(true);
    item.setMultipleAppearance(MultipleAppearance.GRID);
    when selecting first two records multiple warnings appears on console log (super dev mode):
    Code:
     *20:58:15.179:MDN8:WARN:NativeSelectItem:isc_SelectItem_9[classes]:compareValues - this is a multiple FormItem but compareValues was called with a non-null first argument `value1` that is not an array.   
     
      *20:58:15.183:MDN8:WARN:NativeSelectItem:isc_SelectItem_9[classes]:compareValues - this is a multiple FormItem but compareValues was called with a non-null second argument `value2` that is not an array.
    It looks like there is a value comparison and when only one record is selected on grid, its returned not as array but as single value.
    When I change to:

    Code:
    item.setMultipleAppearance(MultipleAppearance.PICKLIST);

    Problem disappears.

    Best regards
    Mariusz Goch



  • #2
    You forgot to post what product and version you are using.

    If you are not already using the latest patched version, please update to the latest patched version and let us know if you still reproduce the problem.

    Comment


    • #3
      Tested on last nightly build:
      SmartGWT 6.0p 2017-02-17
      GWT-2.8.0

      Best regards
      Mariusz Goch

      Comment


      • #4
        This has been fixed for nightly builds dated February 22 and later.

        Comment


        • #5
          Yes. It looks fine now.
          Thank you

          Best regards
          Mariusz Goch

          Comment

          Working...
          X