cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Filter groups in adapt filter window of smart fitler bar.

prasad
Participant
0 Kudos

Hi All,

would like to hide some field groups in a smart filter bar fiori elements UI5 application .

How would we can achieve this?

Regards

Prasad

breinelt
Explorer
0 Kudos

Hey Prasad,

did you get a solution for this? I have the same requirement.

Thanks.

Regards

Bettina

Angshuman
Participant
0 Kudos

Use this annotation in your CDS. It's working for me.

@Consumption.filter.hidden: true

Thanks

Angshuman

0 Kudos

Hi, Prasad.

Did you found a solution?

Accepted Solutions (1)

Accepted Solutions (1)

prasad
Participant

Hi used the below code to hide unwanted fields .

for example if the below fields are unwanted create a CSV of unwanted filters and remove from personalization

  • Check_ac
  • Activate_ac
  • Check_new_ac

var csvOmittedFilters = "Check_ac,Activate_ac,Check_new_ac"

this.getView().byId("listReport").setIgnoreFromPersonalisation(csvOmittedFilters);

Answers (2)

Answers (2)

a_kuenzel
Discoverer

Hi Prasad,

check out the property "useProvidedNavigationProperties" of the SmartFilterBar in the API Reference. If set to true, it only checks the given associations in property "navigationProperties" for further filters. If you leave "navigationProperties" empty, then no more filter groups will be considered.

Best regards,

Andreas

jayme_alonso
Participant
0 Kudos

Worked perfectly! Added the two attributes in the tag Smartfilterbar

useProvidedNavigationProperties="true" navigationProperties=""
Yifan
Advisor
Advisor
0 Kudos