Skip to Content
0

SAP fiori launchpad user preferences: add a new option

Jan 24, 2017 at 02:12 PM

325

avatar image
Former Member

Hello,

I know that this question has already been answered but I need more detail on how the solution has been implemented.

I need to add a option for the user to change the language after login in the launchap. In the user preferences menu, I have to add a field where the user will change the current language. This is done by using a specific method of the ushell renderer API https://sapui5.netweaver.ondemand.com/#docs/api/symbols/sap.ushell.renderers.fiori2.Renderer.html#addUserPreferencesEntry

and http://help.sap.com/saphelp_nw75/helpdata/de/26/dd9957579e491c86b86089fa804b30/content.htm

The question is where should I implement the method: in which file?

thank you

Christophe

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Krishna Kishor Kammaje
Jan 25, 2017 at 04:41 AM
1

You need to create a new UI5 app for it. This is going to be a simple app, may be just containing Component.js. This app is going to be assigned to a catalog which all users in your organization going to have (so that all these users have this additional option).

While adding this app to the catalog, you need to use a specific Semantic Object and Action. Details here.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 25, 2017 at 07:55 AM
0

thanks for your answer but i do not want to use a separate app. I would like to add a new option in the user preferences of the launchpad by using the method addUserPreferencesEntry of the ushell renderer API. I do not know where should i add the code, in which files?

Show 2 Share
10 |10000 characters needed characters left characters exceeded

The new app I am suggesting will not be a new app to the user. It is the app which contains the call to method 'addUserPreferencesEntry'. Did you go through the link I mentioned about Fiori UI addons?

0
Former Member

Hi can you please tell me to add field to user preferences dialog box and where to add. Actually in have 4 applications . I need for all of those as well. Can you suggest me the steps to be done like code sharing , screens shots if you have already done . Please Help me out .

0
avatar image
Former Member Jan 25, 2017 at 01:28 PM
0

Hello,

I am confused because in the sap help, in order to 'Adding Items to the User Preferences Dialog Box', no need of plug-in is mentionned. It only says to use the methods of the Renderer API that add an item to the User Preferences dialog box: addUserPreferencesEntry.

The new item will then appear in the user preferences of the launchpad. We do not need to add any app to any catalog.

Share
10 |10000 characters needed characters left characters exceeded
Jun Wu Jan 25, 2017 at 02:43 PM
0

the api is doing real job, but you have to hook the code to the launchpad, which is done by plugin

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 25, 2017 at 03:51 PM
0

One more question: when the user choose the option 'Sync Home page' in the launchpad, he gets 2 possiblities: 'Update Home Page' and 'Reset Home Page'. I searched for a while which components are involved in this process (ui5, javascript, abap class...) without any success.

Do you have any idea? I want to understand the difference between the 'update' and the 'reset' at source code level.

thank you
Show 1 Share
10 |10000 characters needed characters left characters exceeded

If the original question is answered, mark the answer, close the thread and open a new discussion. Please do not add further questions.

Thanks

-Krishna (Moderator)

0