4 weeks ago
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?
Request clarification before answering.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
21 | |
9 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.