Skip to Content

Custom control for sap.m.MessageBox - wrap within iFrame or Div HTML elements

Hello Expert's

We work on IE 11 and display PDF's through iFrame. The PDF's displays properly but when we click a button to display message box on top of the pdf file, layering issue arises where the message box layer is displaying behind the pdf layer and user's are not able to see message box in the front.

To overcome that, is there a possibility to develop message box (sap.m.MessageBox) content within an iFrame and Div elements ? If yes, can someone guide me to develop a custom control that will render message box within an iFrame, Div HTML elements in the browser ? This will help me to set the CSS style property zIndex of the Div element to display the message box on top of the pdf.

Note: I tried third party libraries to display pdf (like pdf.js library) but the outcome is not good. So, looking to develop custom control.


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 23, 2017 at 09:46 AM


    Have you tried all the possible messaging options sap.m.Dialog, sap.m.MessageToast etc.(in the SDK type message on the search)?

    In addition, you can also write/import message classes, the same way you use pdf.js.

    If you want a more in-depth help I would post the code with that problem illustrated (everything that is needed in order to recreate it).

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 08, 2018 at 11:21 AM


    Have you tried out with jsPDF plugin. Also, instead of using message box, you could try with a dialog (open it from a fragment if required) and check if you can achieve your requirement.


    Arjun Biswas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.