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
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"/>
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>
Save your changes.
To check for validation errors, build your contracts. Run sf
mdl build.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.