You are here:
Load Selected Display
To load the display details, configure a master-detail action type in the process contract.
Required Editions
| Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled |
| User Permissions Needed | |
|---|---|
| To configure a master-detail action | Customizer, Developer |
The master-detail action type is a two-pane page pattern. This action type consists of a master or parent list section and a details section. When a user taps an item from the parent list, the app loads the detailed information of that item in the adjacent details section.
-
To store the display detail, define a process variable in
MyDisplay_DisplayDetailsProcess.processflow.xml in your VS Code Modeler
workspace by using this information
Declaration name CurrentDisplay Declaration value BoMyDisplay <Process name="MyDisplay::DisplayDetailsProcess" defaultAction="ShowDisplayDetails" schemaVersion="0.0.0.5"> <Entry> <ProcessContext> <Declarations> <Declaration name="DisplayList" type="LoMyDisplays" /> <Declaration name="CurrentDisplay" type="BoMyDisplay" /> </Declarations> <Parameters> </Parameters> </ProcessContext> <EntryActions> -
To return the pKey property of the grouped list or master list item, define an
itemselected event in MyDisplay_DisplayDetailsUI.userinterface.xml.
event itemSelected Param name pKey Param value .pkey </Items> <Events> <ItemSelectedEvent event="itemSelected" resetMultiAreas="true"› <Params> <Param name="pKey" value=".pKey" /> </Params> </ItemSelectedEvent> </Events> </GroupedList> </Area> </Section> -
Register the item selected event in the VIEW action of the process
contract.
<Events> <Event name="itemSelected" action="LoadDisplayDetails" /> </Events> -
Create a master detail action, triggered from the item selected event, by using
these details.
Action name LoadDisplayDetails actionType MASTER_DETAIL_HANDLER MasterList name ProcessContext::DisplayList ItemUnselected type RELOAD DetailObject name ProcessContext::CurrentDisplay objectClass BoMyDisplay Save type DIRTY confirmation FALSE validate TRUE <Action name="LoadDisplayDetails" actionType="MASTER_DETAIL_HANDLER"> <MasterList name="ProcessContext::DisplayList"> <ItemUnselected type="RELOAD" /> </MasterList> <DetailObject name="ProcessContext::CurrentDisplay" objectClass="BoMyDisplay"> <Save type="DIRTY" confirmation="FALSE" validate="TRUE" /> </DetailObject> </Action> - Save your changes.
-
To test the changes, build the contracts by running this command.
sf modeler workspace build
Did this article solve your issue?
Let us know so we can improve!

