cancel
Showing results for 
Search instead for 
Did you mean: 

add icon tab bar filter to smart table

carlos_venturo
Participant
0 Kudos

Hello experts,

Im kind a new in the sapui5 developing scenario,,

I did a report with a ODATA from a hana cloud table. it is working just fine, i bind the odata in the manifest as well as the "global" model and the smart filter is working too.

The thing is that now i would like to have a icon tab bar with the posible states of the records, and filter according.

How can i bind the icon tab bar to filter to the model or the odata and make the filter posible .

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

zaferonbas
Participant
0 Kudos

Hi Carlos,

You can try List Report with Multiple Views option.

https://sapui5.hana.ondemand.com/#/topic/a37df408044e41ef84e67207c8658d4f

Otherwise you must code it manually. There is an example in the SDK for this;

https://sapui5.hana.ondemand.com/#/sample/sap.m.sample.IconTabBar/preview

Thanks,

Zafer

RaminS
Participant
0 Kudos

In the second scenario, How do you perform a Count of each of the icon filters?

The SAP sample hard-codes the count or reads as a field from backend (thanks SAP!). How do we display the count for each tab in real scenarios?

zaferonbas
Participant
0 Kudos

Hi Ramin,

You can use OData $count / $inlinecount query options.