UI Application
In this lesson, you’ll design a user interface to showcase and test the content we’ve developed for the customer loyalty program application.
- Go back to the Storyboard and add a first UI application by selecting the (+)
- We will start with the user interface for the data entity Purchases. Enter the following values:
- Display name: Purchases
- Description: Manage Purchases
- Data Source: customer_loyal_Srv
-
Select Next
-
Select Template-Based Responsive Application as the UI Application type.
-
Select Next
-
Select List Report Page
-
Select Next
-
Select the Purchases entity
-
Select Finish
- Close the Page Map if needed.
Repeat the same steps with the Customer and Redemption entity.
Customer:
- Display name: Customers
- Description: Manage Customers
- Data Source: customer_loyal_Srv
- UI Application type: Template-Based Responsive Application
- UI Application Template: List Report Page
- Main Entity: Customers
Wait for the UI to create.
Redemptions:
- Display name: Redemptions
- Description: Manage Redemptions
- Data Source: customer_loyal_Srv
- UI Application type: Template-Based Responsive Application
- UI Application Template: List Report Page
- Main Entity: Redemptions
Wait for the UI to create. You shoud see a message, that the files have been generated.
Modify the UI for the Purchases
Now we are going to modify the UI for the purchases. We will include the products from S/4HANA as value help in the purchases and hide some fields.
-
Go back to the Storyboard.
-
Select the Purchases UI and open it in the Page Map.
- To see which is the Purchases UI, move mouse pointer over the UI to extend the displayed name.
- We want to modify the Object page. Therefore select the edit icon
- In the Sections, expand General Information then expand Form and then expand Fields.
- Afterwards it will look like this:
The reward points are calculated automatically by the logic Joule has created for us.
- Delete the Reward Points field by pressing the trash bin icon next to it and Confirm the deletion.
Instead we want to select the products from S/4HANA for the purchases.
- Select the field Selected Product and change the Display Type in the properties on the right side to Value Help.
Set the following:
- Label: Product
- Value Source Entity: A_ProductBasicText
- keep the rest as it is.
- Select Apply