2024 May 24 3:15 PM - edited 2024 May 24 4:49 PM
Hello,
I have a FilterBar (class sap.fe.macros.FilterBar) and I do not want all the fields to be used. So they should also not be availabe or shown in the Adapt Filters List. Normally this is done in the Metadata Extension by removing the annotation @ui.selectionField, but that is static. For my case it has to be dynamic.
Is it possible to do this in the FilterBar?
I found in the documentation the methods setFilterFieldEnabled and setFilterFieldVisible. But it is not what I'm searching for. setFilterFieldEnabled can disable a field, but the field is still visible. setFilterFieldVisible can hide the field from the filter bar, but it is still visible in the Adapt Filters List.
Kind regards, Alwin
It has to be dynamic, because the table is based on a database table with multi data sets. For example.
Set Field | Field A | Field B | Field C | Result Field |
1 | A | A | 001 | |
1 | A | B | 002 | |
2 | A | A | 101 | |
2 | A | B | 102 |
Set 1 uses field A and B. Set 2 uses field A and C.
There are more than 20 sets and more than 30 fields. Therefor one Free style app is requested in stead of 20 Fiori Elements apps.
Request clarification before answering.
It looks like I have to use sap.ui.comp.smartfilterbar.SmartFilterBar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
21 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.