Loading
Salesforce now sends email only from verified domains. Read More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Load Selected Display

          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.

          1. 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>
          2. 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>
          3. Register the item selected event in the VIEW action of the process contract.
            <Events>
               <Event name="itemSelected" action="LoadDisplayDetails" />
            </Events>
          4. 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>
          5. Save your changes.
          6. To test the changes, build the contracts by running this command. sf modeler workspace build
           
          Loading
          Salesforce Help | Article