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
          Work with Tables

          Work with Tables

          Use tables to structure data and define the layout in the PDF. Define tables with the normal XHTML tags such as, table, tr, th, and td.

          Required Editions

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

          Use bold, italics, and text alignment in the th and td tags to style the contents of cells. Define the table layout using one of these attributes:

          • noBorders
          • headerLineOnly
          • lightHorizontalLines
          • lightHorizontalLinesMainItemsOnly

          Use dontBreakRows to insert a row to break across multiple pages. The default value is true.

          <table name="ImageTable"tableLayout="noBorders">
                <thead>
                  <tr>
                    <th width="*" alignment="center"></th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td alignment="right">
                      <img src="{{Declarations::myImageName}}" width="100" />
                    </td>
                  </tr>
                </tbody>
              </table>

          You can use colSpan and rowSpan in the td and th elements.

          The table element supports these child elements:

          • thead - creates a header row in a table and has to be defined prior to the tbody element. This element does not support any attribute and it can contain a child element, tr.
          • tbody - groups the content in a table. This element does not support any attribute. It can contain a child element, tr.
            <tbody>
                    <tr>
                      <td></td>
                      <td alignment="right">{{Labels::TotalPrdId; defaultLabel=Total Products and Other Items}}</td>
                      <td alignment="right">{{Declarations::header.totalValueReceipt; numberFormat=8.2}} {{Declarations::header.currency}}</td>
                    </tr>
                    <tr>
                      <td></td>
                      <td bold="true" alignment="right">{{Labels::TotalAmountId; defaultLabel=Total Amount}}</td>
                      <td bold="true" alignment="right">{{Declarations::header.grossTotalValueReceipt; numberFormat=8.2}} {{Declarations::header.currency}}</td>
                    </tr>
                  </tbody>

          Use the tr element to define a row in a table.

           
          Loading
          Salesforce Help | Article