cancel
Showing results for 
Search instead for 
Did you mean: 

How to Group Filters with SmartFilterBar out of CDS View

Former Member
0 Kudos

hi Experts,

I want to organize my filters in my SmartFilterBar like this sample:

when I click button: Filters, it'll pop-up a window shows all filters, and GROUPED,

I have made the value helps and the filters, but what I get was just a mass, and seems grouped by cds views, and

I got many duplicated field.

so is there some expert that knows how to group the filters?

many many many thanks !

Best Regards !

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor
0 Kudos

Hi Magina,

you have to annotate your fields with @UI.fieldGroup. The grouping is also applied to the filter dialog.

All fields belonging to the same group need the same qualifier. One annotation should set the groupLabel property.

For instance:

...

@UI.fieldGroup: { qualifier: 'TestGroup1', groupLabel: 'My Test Group 1'}

field1,

@UI.fieldGroup: { qualifier: 'TestGroup1' }

field2,

@UI.fieldGroup: { qualifier: 'TestGroup2', groupLabel: 'My Test Group 2'}

field3,

...

Regards,

Florian

Former Member
0 Kudos

hi Florian,

looks like good, but the fields are not grouped ...

and the group name is just ugly, here is my cds view code, anything I am missing?

many many many thanks again

BR,

Magina

pfefferf
Active Contributor
0 Kudos

Your UI.fieldGroup settings look ok. Did you check that your browser did the display the newest version (and not a cached one)?

Former Member
0 Kudos

yes, I checked this, it do displayed the newest version,

and another strange things is that the valuehelp dialog's field name,

it just shows the global field but not the @EndUserText I set at CDS view,

and the result table just missing column names ....

do u have any idea on both of that?

really nice to have ur help here, many thanks

BR,

Magina

pfefferf
Active Contributor
0 Kudos

Annotation @EndUserText is not considered for Smart Template UIs. You have to set the label property of the relevant UI annotation. In your case for instance @UI.fieldGroup: { qualifier: 'BasicGroup', groupLabel: 'Basic', position: 10, label: 'Material' }.

Former Member
0 Kudos

hi Florian,

we are using smart controls but not smart template, is that not supported as well?

and the label u mentioned was set for the filter name, seems not the field names in the pop-up value help dialog~ I'm just confused about that.

and do u know how to remove these groups? looks so un-friendly ...

Answers (0)