2

Help with SAPUI5 fragment callback

 1 year ago
source link: https://answers.sap.com/questions/13883490/help-with-sapui5-fragment-callback.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1 minute ago

Help with SAPUI5 fragment callback

2 Views

We need help with an issue where my custom functions for button presses in a fragment. i.e. closing the dialog window on pressing the cancel button, are not getting triggered.

Raising a request on behalf of a partner.

image.png

Here are the steps I took to implement the dialog window:

1. Implemented a custom action "Mass Create" at the table toolbar level via Fiori Application Modeler in Business Application Studio

image.png

2. Implemented functions to open and close the dialog fragment:

image.png

3. Implemented on press events for buttons in the fragment (with and without a period before the event name):

image.png

I've referred to code samples provided in the SAPUI5 SDK but couldn't figure out why I can open the dialog window but not close it. Is it because my dialog is called from the manifest action, instead of from within a view?

image.png

I've tried including the controller in my action handler but then the dialog won't even open.

Please advise, thank you.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK