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
          Configure the Launch Button Click Event

          Configure the Launch Button Click Event

          In the Modeler workspace, create an event handler to handle the maps app launch button click event. The Google Maps app opens when a sales rep taps the launch button on a product display record page in the Consumer Goods Cloud offline mobile app. This UI action is known as an event.

          Required Editions

          Available in: Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled
          User Permissions Needed
          To configure the launch button click event: CG Cloud Developer, Admin
          1. To implement the event handler for the UI action, add this snippet to the View Action Events node in the process contract in your Modeler workspace: MyDisplay_DisplayDetailsProcess.processflow.xml.
            <Event name="NavigateTo" action="NavigateTo"/>
          2. To call the NavigateTo method, create an action in the Action section.
            <!-- Call the NavigateTo Function if the button is pressed-->
            <Action name="NavigateTo" actionType="LOGIC" call="ProcessContext::CurrentDisplay.MyNavigateTo">
              <TransitionTo action="ShowDisplayDetails" />
            </Action>
            
          3. Save your changes.
          4. To check for validation errors, build your contracts. Run sf mdl build.
           
          Loading
          Salesforce Help | Article