cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Documentation for sap.fe.core.controls.FilterBar in SAPUI5

Dooommajster
Discoverer
0 Likes
1,020

Hello SAP Community,

I have created a List Report Fiori application using Fiori Elements in Visual Studio Code. I installed the UI5 Inspector, and when I examined the FilterBar, the tool indicated that it is an instance of sap.fe.core.controls.FilterBar (html element namespace). However, when I tried to find the documentation or API reference for this control on the official SAPUI5 website, I couldn't find anything.

I am using SAPUI5 version 1.96.23. I can see only documentation for sap.fe.macros.FilterBarsap.ui.comp.filterbar.FilterBar and sap.ui.mdc.FilterBar .

Can you advise me on how to access the documentation for this control or suggest any alternative sources of information?

Thank you in advance for your help!

Accepted Solutions (0)

Answers (1)

Answers (1)

waza7658
Participant
0 Likes
Dooommajster
Discoverer
0 Likes
Thank you for sharing the documentation. According to the official SAP UI5 documentation, the FilterBar control should provide the getSelectionVariant method. However, when I retrieve my FilterBar using the Extension API and the byId method in the extension controller, this method is not available, as shown in the attached code. const oExtensionAPI = this.base.getExtensionAPI(); const oGlobalFilter = oExtensionAPI.byId('myfilterid'); And the resulting error is: Uncaught TypeError: oGlobalFilter.getSelectionVariant is not a function. This makes me think that, these two are not the same elements. So I think that the documentation you have provided me is for different filterbar, or perhaps I am overlooking something.
C5401600
Associate
Associate
0 Likes

you can use de "vm" element and directly call what you need, but idk Fiori should be "out of the box", im have issues with custom sap.m.* input types, the documentation not list support multi input compatibility for preload variant values..