cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 - Set default Variant

former_member289890
Participant
0 Kudos

Gurus,

I have a Fiori application and have a conroller.js file. I also created a shared varaint.

I am strugging with setting the created variant as a default variant for all other users.

I saw class - class sap.ui.comp.smartvariants.SmartVariantManagement in Demo Kit but not sure what all methods will help. Did many trial and error, no luck so far.

setting variant should be in onBeforeRendering or OnInit ? Any help with some psedocode is appreciated.

Help !

Tanveer

former_member186734
Active Participant
0 Kudos

Hello shaikhtanveer,

Thank you for your post. It seems that you've chosen the wrong tag for your question which decreases its chances to be answered. In the future, please submit your question with the right tag.

You can learn more about tags at https://www.sap.com/community/about/using-tags.html and browse all existing tags here: https://www.sap.com/community/topic.html

For general information and tips about asking questions in the community, please visit this page:http://www.sap.com/community/about/questions-and-answers.html

I've removed the wrong tags for this question for now. Please post according to the guidelines provided above. In case you have any additional questions regarding the SAP Community, please reach out to scnmoderators (at ) sap (dot) com.

Thank you for your understanding.

Bruno Lucattelli
SAP Community Moderator

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

HI, did you find a solution to this?

Dan_Connor
Explorer
0 Kudos

Hello!
There was something about it at 2018:
https://blogs.sap.com/2018/08/23/fiori-variant-management-set-a-variant-as-default-to-all-users/

But seems that it's not working anymore in 2022.


Regards,
Dan

Accepted Solutions (0)

Answers (0)