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.