on 08-05-2014 9:01 AM
Hi there,
I'm new to SAPUI5 and I'm currently building my first application.
It should be used to approve requests (access to shared folders/mailboxes/applications etc.) created in SAP BPM.
Currently the UI is based on WDJ and I'm replacing it with SAPUI5.
The application should display the following data:
The application should provide two buttons: "Approve" and "Decline".
If the user declines a request, a reason has to be entered.
Only single requests can be processed, so a approver will open each request separately.
This is how the WDJ application looks like (here it shows an application access request):
The new application should use sap.m library, because a main requirement is the ability to run on mobile devices.
I've had a look at the blog, but I'm not sure if that's applicable for my requirements.
To all SAPUI5 experts out there: How would you design this application?
Which layout elements would you use?
Does it make sense to build a Fiori-like app for this scenario?
Thanks in advance!
Best regards,
Thorsten.
Hi,
Have a look at the SimpleForm, it should give your roughly the same look and feel as your current application
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The panel control only provides a full width container, which will expand to the width of the screen, but doesn't really provide any control regarding how the form elements are laid out.
Where as the simple form provides more granular control over the number of columns, breakpoints to display the fields differently for different resolutons.If you provide a title if will also group the elements.
Regards,
Jason
Thanks guys for your answers!
I've started now to create a Form (not SimpleForm) with a Responsive Grid Layout.
For me that's better, because I can add content to the form via form containers.
It allows me to create methods like e.g. getRequester which returns me a form container that can be added to the form.
oFormContRequester = this.getRequester();
oFormContInitiator = this.getInitiator();
var oForm = new sap.ui.layout.form.Form("F1", {
layout : oLayout1,
formContainers :
[ oFormContRequester,
oFormContInitiator ]
});
With a SimpleForm you have to add the whole content when creating the form:
var oSimpleForm = new sap.ui.layout.form.SimpleForm(
"sf1",
{
maxContainerCols: 2,
content:[
new sap.ui.core.Title({text:"Person"}),
new sap.ui.commons.Label({text:"Name"}),...
Do you see that also as an advantage?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you had a look at the demo applications, there is an example of a Purchase order approval application?
If you plan to use the sap.m controls then it probably makes sense to use the SplitApp control with list/details view, where the list view can display the list of people to approve and then the detail view can display the information in your screenshot, with the approve/reject buttons.
https://sapui5.hana.ondemand.com/sdk/test-resources/sap/m/demokit/poa/index.html#/detail/300000001
https://sapui5.hana.ondemand.com/sdk/#demoapps.html
Regards,
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Jason!
I've had a look at the "Purchase order" demo app.
But the difference to my application is the fact, that in the PO application multiple POs can be approved.
In my application users will only see a single request that they can approve or decline.
So there's not really listed data to be shown (like the PO list).
Maybe it's better to design it as done in this blog: .
What do you think?
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.