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.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 23, 2017 at 09:46 AM

    Hi,

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

  • Feb 08 at 11:21 AM

    Hi,

    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.

    Regards,

    Arjun Biswas

    Add comment
    10|10000 characters needed characters exceeded