Skip to Content
avatar image
Former Member

SAP fiori launchpad user preferences: add a new option

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jan 25, 2017 at 04:41 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 25, 2017 at 07:55 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded

    • 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 .

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

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 25, 2017 at 02:43 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 25, 2017 at 03:51 PM

    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
    Add comment
    10|10000 characters needed characters exceeded