You are here:
View Display Information on the Details Page
Create a Details page by using the master-detail pattern and link the page to a cockpit card button.
Required Editions
| Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled |
| User Permissions Needed | |
|---|---|
| To add and configure a master-detail page | Customizer, Developer |
Add UI controls to the detail section and bind the controls to the new business object
properties. The process listens to the itemSelected event and uses the master detail handler action to load
the business object. The business object represents one display record and the data
source loads the record by using its primary key (pKey) or ID.
Use these instructions to add UI controls to the detail area in the $workspace/src/MyDisplay/PR/MyDisplay_DisplayDetails/MyDisplay_DisplayDetailsUI.userinterface.xml UI contract.
-
To group multiple controls, in MyDisplay_DisplayDetailsUI.userinterface.xml,
add a
GroupElementwith title binding.-
To show the display name, in
InputArea, enter Info in name and title.InputAreasupports dynamic binding. -
Bind
InputAreatoCurrentDisplaythat represents one display record. -
To show the description, in
InputAreaMultiLine, enter Name in name and label, and Name of the current display in value.InputAreaMultiLinesupports multiple rows for longer texts. -
Bind
InputAreaMultiLineto theCurrentDisplayobject. Inname, specify Description and innoOfRowsenter 3.
-
To show the display name, in
-
To show the competitor display flag, add another
GroupElementcalled type. Configure thetypeGroupElement by using these details.name CompetitorDisplay label Competitor Display checkedValue competitorDisplay flag of the current display The detailSection configuration in MyDisplay_DisplayDetailsUI.userinterface.xml should look like this.<Section sectionName="detailSection" sectionPattern="SingleAreaSection"> <Area areaName="detailArea" areaPattern="GroupedElementsArea"> <GroupElement name="Info"> <Bindings> <Resource target="Title" type="Label" id="DisplayDetailInfoGroup" defaultLabel="Info" /> </Bindings> <InputArea name="Name"> <Bindings> <Resource target="Label" type="Label" id="DisplayName" defaultLabel="Name" /> <Binding target="Value" binding="ProcessContext::CurrentDisplay.name" bindingMode="TWO_WAY" /> </Bindings> </InputArea> <InputAreaMultiLine name="Description" noOfRows="3"> <Bindings> <Resource target="Label" type="Label" id="DisplayDescription" defaultLabel="Description" /> <Binding target="Value" binding="ProcessContext::CurrentDisplay.description" bindingMode="TWO_WAY" /> </Bindings> </InputAreaMultiLine> </GroupElement> <GroupElement name="Type"> <Bindings> <Resource target="Title" type="Label" id="DisplayDetailTypeGroup" defaultLabel="Type" /> </Bindings> <CheckBox name="CompetitorDisplay"> <Bindings> <Resource target="Label" type="Label" id="CompetitorDisplayCB" defaultLabel="Competitor Display" /> <Binding target="checkedValue" binding="ProcessContext::CurrentDisplay.competitorDisplay" bindingMode="TWO_WAY" /> </Bindings> </CheckBox> </GroupElement> </Area> </Section> - Save your changes.
-
To test the changes, build the contracts by running this command.
sf modeler workspace build
- Load Selected Display
To load the display details, configure a master-detail action type in the process contract. - Add a Business Object to Load the Display Details
When you tap a list item on the parent list, for the master-detail handler to load the item detail, create a business object (CurrentDisplay).
Did this article solve your issue?
Let us know so we can improve!

