Skip to Content

Trigger button event in Dialog

Feb 24, 2017 at 06:19 AM


avatar image
Former Member

Hello Experts,

I have placed a fragment with a button inside a dialog.

I am having problems triggering the button event inside the dialog.

Calling the event in the controller isnt being triggered. Just want to know how can i trigger the button event in the dialog.

Note: This isnt about the BeginButton and EndButton.

Thank you.

capture.jpg (52.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Antonette Venter Feb 24, 2017 at 07:30 AM

Hey Justin

Try this:

if (!oDialog) { //lazy load/create

var oDialog = sap.ui.xmlfragment("<project>.<fragmentfolder>.<fragmentname>",<controller to use for the events called from the dialog fragment>);



Hope this helps


10 |10000 characters needed characters left characters exceeded