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
          Implement a Menu to Generate PDF Reports for Store Displays

          Implement a Menu to Generate PDF Reports for Store Displays

          Configure the MyDisplay_DisplayDetailsUI.userinterface.xml contract to create a menu in the Displays cockpit card of the Consumer Goods offline mobile app. This new menu shows the button to generate PDF reports for store displays.

          Required Editions

          Available in: Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled
          User Permissions Needed
          To implement a menu to generate PDF reports for store displays: CG Cloud Developer AND Admin

          For better usability, create menu items at the page level of the app UI and not at the area level. Menu items that you create at the page level appear in the master layout and detail layout areas of the mobile screen.

          1. Open the Consumer Goods offline mobile app and go to the Your Day cockpit.
          2. To create a menu item on the Displays cockpit card, open the MyDisplay_DisplayDetailsUI.userinterface.xml contract located at $workspace/src/MyDisplay/PL/MyDisplayPDF.
          3. Under the detailArea node, enter this code snippet:
            <MenuItems>
              <MenuItem directlyVisible="false" itemId="PrintPDF">
                <Bindings>
                  <Resource target="Text" type="Label" id="PrintPDF" defaultLabel="Print PDF" />
                  <Resource target="Icon" type="Image" id="ShowPrint_PB" />
                </Bindings>
                <Events>
                  <ButtonPressedEvent event="printPDF" />
                </Events>
              </MenuItem>
            </MenuItems>
            
          4. Save your changes.
          5. To check for validation errors, build your contracts by running sf mdl build.
           
          Loading
          Salesforce Help | Article