Grouping filters together

#1

Hello, how can I group different filter fields together under a certain name as shown below?

0 Likes

#2

yes you can do that into UIViewFilterForm you have “items” - you can put here several UIViewFieldset - each UIViewFieldset represent a group of filter (differentiated by id ) - of course into the UIViewFieldset you have then to set the different filters

0 Likes

#3

I tried it, but in the Type UIViewFieldset there is no field “filters” like for FilterForm, so don’t know how to set the different filters

0 Likes

#4

this is an extraction of how to set it and encapsulate - you need to put them into “items”

ui module Module {
    component Filter {
        "component": "UIViewFilterForm",
        "title": "{~MyApplication.OpportunityFilter.title~}",
        "applyFilterText": "{~MyApplication.applyFilterText~}",
        "clearText": "{~MyApplication.clearText~}",
        "data": {
            "collcection": "MyApplication.Opportunities"
        },
        "filtersTemplate": {
          "operation": " && ",
          "filters": [
            {
              "operation": " || ",
              "filters": ["officeDeclinedInclude", "watchListStatusIncludeOnly"]
            },
            {
              "operation": " || ",
              "filters": ["watchListStatusInclude", "officeDeclinedIncludeOnly"]
            }
          ]
        },
        "enableCache": false,

        "items": [
            {
                "id": "generalFilter",
                "component": "UIViewFieldset",
                "noCollapse": true,
                "items": [
                    {
                        "id": "customertel",
                        "label": "{~MyApplication.OpportunityFilter.items.customertel.label~}",
                        "component": "UIViewControlGroup",
                        "options": {
                            "commaDelimited": true
                        },
                        "field": {
                            "id": "customertel",
                           "component": "UIViewFieldText",
                            "name": "userCodeCalculated",
                            "ignorePageRecord": true
                        }
0 Likes