Skip to Content
0

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

Aug 10, 2017 at 09:40 PM

86

avatar image

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.

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

2 Answers

Iftah Peretz
Dec 23, 2017 at 09:46 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Arjun Biswas Feb 08 at 11:21 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded