Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6364

Column Filter: comboBoxField with optionListDatasource not working as filter

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.18
    • 6.2.3
    • None
    • Yes
    • Yes
    • Nucleus 5
    • 2

      Column Filters: ComboBox Field using the optionListDatasource is not returning results. 

      Steps to reproduce

      •  Add a comBoxField filter such as the following:
        name: events
        label: Events
        icon: icon-calendar
        subApps:
          browser:
            workbench:
              dropConstraintClass: info.magnolia.contacts.app.main.tree.ContactDropConstraint
              contentViews:
                - name: tree
                  $type: treeView
                  defaultOrder: false
                  columns: !override
                    - name: testId
                      label: testId
                      expandRatio: 2
                      width: 200
                      filterComponent:
                        $type: comboBoxField
                        emptySelectionAllowed: true
                        textInputAllowed: true
                        datasource:
                            $type: optionListDatasource
                            options:
                              - name: true
                                value: true
                                label: true
                              - name: false
                                value: false
                                label: false
        
      • Note that you can see the options in the field filter
      • If you select one of the options, it won't return anything
        **

      Expected results
      We should see the available results after the filter is applied

      Actual results
      Nothing is returned
       
      Development notes

      Are we missing to convert the column options to string when applying the filter?

      https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/datasource/optionlist/OptionToModelTypeConverter.java

      https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/contentapp/browser/GridColumnConfigurer.java

      see also development notes here: MGNLUI-7036

        Acceptance criteria

          1. 1.png
            1.png
            45 kB
          2. 2.png
            2.png
            21 kB

              asiska Adam Siska
              mdamborenea Monica Damborenea
              Nucleus
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 0.25d
                    0.25d