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
          Considerations for Process Adaptations for Print Action

          Considerations for Process Adaptations for Print Action

          Configure business process adaptations in Visual Studio Code-based Modeler to generate PDF reports in the Consumer Goods offline mobile app. In the MyDisplay_DisplayDetailsProcess.processflow.xml contract, create an event handler to handle the printPDF event. Next, trigger the PrintV2 action on the Display module of the app to generate the PDF reports. Lastly, test the results on a mobile device.

          Required Editions

          Available in: Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled

          Some backend processes are triggered when a sales rep taps a button to generate PDF reports in the Consumer Goods offline mobile app.

          The backend processes that occur when a sales rep taps a button on the Consumer Goods offline mobile app to create a PDF report.

          View

          The new menu creates an event that ensures sales reps view the button to generate the PDF report on the app UI. The display process handles the event and the event’s visibility is bound to a business object method.

          Controller

          The controller handles the print action and calls the method to print the PDF report.

          Model

          The model determines the business objects and the business methods and invokes the framework method to print the PDF report.

          • Configure the Event Handler
            Create an event handler in the MyDisplay_DisplayDetailsProcess.processflow.xml contract to handle the print PDF event. An event handler is a callback routine that dictates the action that follows an event. For example, to see a PDF report, a sales rep taps the Print PDF button on the Consumer Goods offline app. Here, the button-tapping action is an event, and the generation of PDF report is an event handler.
          • Configure the PrintV2 Action
            Create an action named PrintV2 in the MyDisplay_DisplayDetailsProcess.processflow.xml contract to trigger PDF report generation in the Consumer Goods offline mobile app.
           
          Loading
          Salesforce Help | Article