Complete UI Page "CreditRequest" - UI Panels
Chapter Overview
In this training chapter you will complete UI page "CreditRequest", which displays a form to enter required data for requesting a credit.
Exercise
Exercise 1: Add UI Template
In this exercise, you will add a UI template, which consists of a H3 title and a span to add a UI panel.
-
Step 1: Open UI page "Automation/User Interface/Training/UiPage/CreditRequest" in the model tree
-
Step 2: Drag&drop a layout element template into the left span below the UI panel “Person” to open dialog "SelectTemplate"
-
Step 3: Select UI template "TitlePanelTemplate" with double click or click button "OK"
-
Step 4: Repeat Steps 1 and 2 for the right span below “Last Name” of UI panel “Person”
Exercise 2: Add Titles "Home Address" and "Billing Address"
-
Step 1: Click at the left H4 element “Enter title…” to open TAB "Implementation", SubTAB "Data Mapping" and then SubTAB "Definition Objects"
-
Step 2: Enter "home" in textfield "Search data" and press key "Enter" to find enumValue "HOME_ADDRESS"
-
Step 3: Drag&drop enum value "HOME_ADDRESS" into "Data Mapping"
-
Step 4: Repeat Steps 1 to 3 for the right H4 element "Enter title..." and enter "billing" to map enum value "BILLING_ADDRESS"
Exercise 3: Create “AddressPanel” for Home Address
In this exercise, you will generate a UI panel from business object "Address" and link it twice as a referenced panel to the UI page to enter the home and billing address of the customer.
-
Step 1: Drag&drop layout element referenced panel from the palette into the span below “Home Address” to open dialog "Select or Create UI Panel"
-
Step 2: Select folder "User Interface/Training/UiPanel" and click button "Create" to open dialog "Create Panel"
-
Step 3: Enter model name "AddressPanel" in dialog "Create Panel"
-
Step 4: Mark "Business Object" checked
-
Step 5: Automatically the dialog "Select Business Object" is opened
-
Step 6: Select business object (BO) "Address" with double click or click button "Select" in dialog "Select Business Objects"
-
Step 7: Select row layout "4 + 8" spans
-
Step 8: Click button "Attributes" to open dialog "Configure Attributes"
-
Step 9: Open TAB "Order Attributes" in dialog "Configure Attributes"
-
Step 10: Select attribute "street" and click button "Up" to move it to first position
-
Step 11: Click button "OK" in dialog "Configure Attributes" to return to dialog "Create Panel"
-
Step 12: Click button "OK" in dialog "Create Panel" to link the generated referenced UI panel to the UI pageRemark: At this point, the auto mapping feature will detect a multi mapping possibility for attribute "address" and dialog "Multi Mapping" will open.
-
Step 13: Select attribute "customer.personData.homeAddress" in dialog "Multi Mapping"
-
Step 14: Click button "Mapping" to map parent attribute "homeAddress" to child attribute "address"
Exercise 4: Add UI Panel “AddressPanel” for Billing Address
In this exercise, you will reuse the generated UI panel "AddressPanel" of the previous exercise and link it to the UI page to enter the billing address of the customer.
-
Step 1: Drag&drop layout element Referenced UI panel from the palette into the span below “Billing Address” to open dialog "Select or Create UI Panel"
-
Step 2: Select model "User Interface/Training/UiPanel/AddressPanel" with double click or click button "OK" to add selected UI panelRemark: At this point, the auto mapping feature will detect a multi mapping possibility for attribute "address" and dialog "Multi Mapping" will open
-
Step 13: Select attribute "customer.bilingAddress" in dialog "Multi Mapping"
-
Step 14: Click button "Mapping" to map parent attribute "billingAddress" to child attribute "address"
Exercise 5: Implement Visibility for Address Panels
In this exercise you will implement the visibility "Editable" for both address panels based on boolean attribute "isRequestDialog". The address panels will be editable in user task "Request Credit" and readonly in user task "Verify Credit".
-
Step 1: Select referenced UI panel below "Home Address" and open TAB "Implementation", SubTAB "Visibility" to display visibility properties
-
Step 2: Double click at column "State" of property "Editable" and select value "Script" to enable the script area
-
Step 3: Enter scriptlocalData.customer.creditData.isRequestDialog;
-
Step 4: Repeat Steps 1 to 3 for referenced UI panel of "Billing Address"
Exercise 6: Test UI Page in Preview
In this exercise you will test the look&feel of the UI page using the preview feature.
-
Step 1: Click button "Preview" in the tool bar to display preview of ui pageRemark: A new browser TAB will open to display a preview of the ui page




















