Skip to Content
0
Jan 03, 2023 at 04:31 AM

Buttons inside Dialog are not working in SAP MII UI5 App

230 Views

Hi,

In my MII UI5 App, i have added buttons but they are completely ignored and the code inside them are not working at all.

This the fragment code, which is very basic.

image.png

the fragment loads fine on the App, but when the button inside it is clicked, it doesn't close at all.

The modal is shown below. The close button doesn't work.

image.png

here is the dialog initialization code

image.png

and the code for the close button inside the Dialog.

image.png

I have tried both ways of using getCore as well to fetch the ID of the dialog and then closing it, but that didn't work as well (commented code).

This is inside MII tool App.

Can you provide a solution for this.

Thank you.

Attachments

image.png (7.6 kB)
image.png (5.3 kB)
image.png (17.5 kB)
image.png (10.8 kB)