Loading
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
          Bindings

          Bindings

          Use the Declarations macro path to bind dynamic data. You can use optional attributes in macros to define the typical bindings for the repetitive variables in the each and correlation nodes.

          Required Editions

          Available in Lightning Experience in Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled.

          Declarations replaces the macro content with the value in the referenced BusinessObject or ListObject. For example, {{Declarations::salesOrg.houseNumber}}. Initially, you are required to declare the BO or the LO in the DataDeclaration attribute, later you can use the variables associated with these objects to define the macros path. If the macros path results in null or is unresolved, the macro is shown in the output document for debugging.

          In this example, the macros path is defined for extracting the address data. The sales org object is declared with the LuSalesOrg type in the DataDeclaration attribute. When the path {{Declarations::salesOrg.houseNumber}} is run, the print engine performs the data lookup for the houseNumber variable, extracts the associated value, and shows the value in the document.

          <!-- left out details for brevity -->
          <Declarations>
          <DataDeclaration name="order" type="BoOrder" />
          <DataDeclaration name="salesOrg" type="LuSalesOrg" />
          </Declarations>
          <ReportLayout pageMargins="[40,40,40,40]">
          <table name="ManufacturerTable" dontBreakRows="false" tableLayout="noBorders">
          <tbody>
          <tr>
          <td alignment="right">{{Labels::AddressId; defaultLabel=Address:}}</td>
          <td>{{Declarations::salesOrg.houseNumber}} {{Declarations::salesOrg.street}} {{Declarations::salesOrg.zipCode}} {{Declarations::salesOrg.city}}</td>
          </tr>
          </tbody>
          </table>
          </ReportLayout>
           
          Loading
          Salesforce Help | Article