Skip to Content
avatar image
Former Member

How to add sap.m.MessagePage to sap.ushell.Container.getRenderer("fiori2")

Hi,

I would like to add a sap.m.MessagePage to return of sap.ushell.Container.getRenderer within a custom plugin for Fiori Launchpad on load. To be able to do so, Im assuming I would need to know what sap.ushell.Container.getRenderer returns and hence have some API documentation on sap.ushell.Container. I took a look to https://sapui5.hana.ondemand.com/#/api/ but wasnt able to find any documentation on this class. Seems to be related to https://sapui5.hana.ondemand.com/#/api/sap.ushell.renderers.fiori2.Renderer/overview.

So could somebody tell me where I can find some API documentation on sap.ushell.Container.getRenderer?

Thanks,

kind regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 06, 2018 at 04:20 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ron,

      thank you very much. Im unfortunately still not clear why getRenderer method isnt descripted there, since due context of use:

      sap.ushell.Container.getRenderer("fiori2");

      I (old Java tinkerer) have assumed sap.ushell.Container is a regular class and available methods will be descripted there, analogous to JavaDoc e.g. But Im probably missing something fundamental and dont want to bother you with this, but will ask my more SAPUI5 experienced colleagues regarding this topic.

      However, meanwhile I gave up trying to render an instance of sap.m.MessagePage into the shell, since it obviously doesnt offers any direct methods to place arbitrary controls and MessagePage dont offers methods like open() or show() (placeAt() inherited from sap.ui.core.Control didnt worked for me, since shell isnt offering a container, as far I understood).

      I will try to go with sap.m.Dialog resp. sap.ui.core.HTML instead. This seems to work, but Im currently facing some strange problems there. I will open a new thread, because it doesnt have something to do with my entire question.

      Thank you for your friendly support again,

      kind regards