cancel
Showing results for 
Search instead for 
Did you mean: 

filter bars with Smart variant managements are not working in sapui5

laisukling
Discoverer
0 Kudos
92

hi experts,

I am encountering a weird scenario where I have 2 view (View 1, View 2) , with 2 different filter bars. ( I am using sap.ui.comp.filterbar & sap.ui.comp.smartvariants ) 

Both filter bars has different persistencyKey and smartVariantManagementId. 

i am referring to the sample code, to fetch, apply and register.

FilterBar in DynamicPage with a Table - Samples - Demo Kit - SAPUI5 SDK

When i save the filter variant in the view 1, i can see the saved variant in the view 2 filter bar

How can I get rid of this weird behaviour? 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

laisukling
Discoverer
0 Kudos

we found the answer to this question , in case some one facing the similar question, here the answer:
make sure the persistencyKey value are the same across the smart variant management and the filter bar. 
Then , when instantiate the PersonalizableInfo, make sure the keyName property is "persistencyKey".
This is to tell the control to look for the property name "persistencyKey" of the fitler bar and register it.

Hope it helps!

Answers (0)