In this section you will build a user interface to display the data and add role concept to define different authorizations
After defining the foundation of your application in the previous chapter, we will add an SAP Fiori elements based User Interface to the application.
-
Go to the storyboard page and find the UI Application tile and choose the + icon to add a new user interface.
-
A screen will show up where you can add the Display Name: Risks and enter a description. Choose Next.
-
Select UI Application type as Template-Based, Responsive Application to create a SAP Fiori elements based UI. Choose Next.
-
Choose UI application template as List Report Page. Choose Next.
-
Select main entity as risks in Data Objects, to show risks entity in UI. Choose Finish.
-
Repeat the steps 1–4 for Mitigations. This time choose Mitigation as Display Name.
-
Select Mitigation as main entity in Data Objects, and choose risks as navigation entity. Choose Finish.
-
Under UI Applications, choose the entry Riskmanagement.Mitigations.
-
Find the Object Page entry and choose the edit icon.
-
Near to Sections choose the + icon to add new section to the UI. In the dropdown, select Add Table Section.
-
In the popup enter Label as Risks and choose value source as risks from the dropdown.
-
Click on Add button.
-
In the entry Section open Risks → Table → Columns. Choose the + icon to add new fields to the UI. In the dropdown, select Add Basic Columns.
-
In the dropdown choose the following fields inside risks.
- ID
- title
- description
- impact
- prio
Now, you can create roles to define different authorization for your application. For example you might want to ensure that some people can view data, but are not able to edit them.
-
Go back to the storyboard of the application. Find the Open Editor dropdown on the top and choose User Roles.
-
Choose + icon and enter a role name, for example, RiskViewer. Enter a description and choose Read as Privilege Defaults. Choose Save.
-
Choose your created role and select your created service in the Service Assignments field.
-
Choose Add Service Entities. In the pop-up, switch on the assign toggle button for risks and mitigations. Check if slider for privileges is selected as read. Choose Save.
-
Go back to User Roles and choose the + icon to add a new role. Enter a role name, for example, RiskManager'. Enter a description and choose Full as Privilege Defaults. Choose Save.
-
Choose your created role and select your created service in the Service Assignments field.
-
Choose Add Service Entities. In the pop-up, switch on the assign toggle button for risks and mitigations. Check if slider for privileges is selected as full. Choose Save.
You now have developed your first application with SAP Business Application Studio visual tools. In the next section you will test the application.
Need help? Look at the Troubleshooting Guide or use mission support to connect with mission experts.