Following on from a great debate about Fiori and Freeori that stemmed from a post by applebyj 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.
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.
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()
})
This is a Fiori UI, so the controls used are from the sap.m library.
I have of course made the code available, in the sapui5bin repo on Github:
https://github.com/qmacro/sapui5bin/blob/master/SinglePageExamples/PayrollControlCenterMockup.html
Share and enjoy!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |