Skip to Content
Author's profile photo Former Member

Advanced Wizardry – Report “Reason” for Expected Events in your Fiori Application

Or how can I enhance my Fiori Application?


Hi,

After the blog The ultimate Step by Step Guide for Wizardry generated a full Fiori Application based on ODT40, I’ll now show you how to enhance your Report Expected Event Dialog to report EventReasonText as well in less than 5 Minutes!


Disclaimer:

This guide does not help with making cookies. 🙁

Presets:

  • Working Web IDE
  • Working Fiori Event Managment Application



Step one – Identify your enhancing point

In your Fiori Application under the “fragments” Folder you will find the “ReportDialog.fragment.xml”. This fragment describes the dialog that will popup once you press the Pencilbutton inside the Eventmessagetable.

/wp-content/uploads/2016/05/1_942765.png

Step two – Commencing Enhancing

Its a pretty straight forward way to include a label and an input into the dialog. The Syntax is xml so its even readable:

/wp-content/uploads/2016/05/2_942767.png

The text for the label is already in place in the OdataService. Every Property in the EventMessageOverview Collection can be used directly without defining your own labeltext!

The Input just needs the changemethod and the Customdata and your almost ready to go!



Step two – Fixing the logic

We need to provide only a small fix for the logic in order to make it work. Navigate to your Details.controller:

/wp-content/uploads/2016/05/3_942768.png

And comment the following line, just like in my example picture:


/wp-content/uploads/2016/05/4_942769.png


Step three – Let the magic happen

Voila. Or Voilá? That french word for “tadaa”! We have a Fiori Application that can report reason for expected events:


/wp-content/uploads/2016/05/5_942777.png



/wp-content/uploads/2016/05/6_942778.png



/wp-content/uploads/2016/05/7_942779.png


There you go! An enhancement in less than 5 Minutes!

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Zenon Kowalewski
      Zenon Kowalewski

      Thanks again Robert!! Just what the doctor ordered!