DJ Adams

Mocking up the Payroll Control Center Fiori App

Following on from a great debate about Fiori and Freeori that stemmed from a post by John Appleby there were some comments about HCM app renewals. Latterly John Moy pointed out a post Improve payroll data validation with SAP Payroll control center add-on where some very Fiori-like UIs were being shown.

Coffee Time

I thought it would be a nice little coffee-time exercise to try and reproduce one of the Fiori app pages shown in the screenshots in that post:

So I did, and as I did it I recorded it to share. I thought I'd write a few notes here on what was covered, and there's a link to the video and the code at the end.

Developer tools

In-line XML views

The XML views in this single-page MVC are defined in a special script tag

<script id="view1" type="sapui5/xmlview">
    <mvc:View
        controllerName="local.controller"
        xmlns:mvc="sap.ui.core.mvc"
        xmlns="sap.m">
        ${6:<!-- Add your XML-based controls here -->}
    </mvc:View>
</script>

and then picked up in the view instantiation with like this:

var oView = sap.ui.xmlview({
    viewContent: jQuery('#view1').html()
})

Controls Used

This is a Fiori UI, so the controls used are from the sap.m library.

Video

Video thumbnail

https://www.youtube.com/watch?v=RJ8Kg14vhdE

Code

I have of course made the code available in the sapui5bin repo on Github.

Share and enjoy!

Originally published on SAP Community