---
schema_version: "1"
id: 13a4294681ead517ca76a5487ad2b6d4b45c8294ff9c4afb376f86fb24183ea9
title: Create a Table for the Current Display Fields
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/create_a_table_for_the_current_display_fields.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.create_a_table_for_the_current_display_fields.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7b3a2367425acf02cc85baece56d59beb46b733e3db5a20747d0abd9a5c39bc8
description: Create a table in the print layout to show the current display products in a store. You can see details, such as the name and description of the products, the customer, the type, and the competitor.
products:
  - Consumer Goods
release: "264"
---
# Create a Table for the Current Display Fields

Create a table in the print layout to show the current display products in a store. You can see details, such as the name and description of the products, the customer, the type, and the competitor.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Professional</strong>, <strong>Enterprise</strong>, and <strong>Unlimited</strong> Editions that have Consumer Goods Cloud enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d56275e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d56275e63 ">To create a table for the current display fields:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d56275e63 ">CG Cloud Developer AND Admin</td>

          </tr>
        </tbody>
      </table>

1. Open Visual Studio Code-based Modeler.
2. In your Modeler workspace, enter this code snippet in the Report Layout section of the MyDisplayPDF.printlayoutv2.xml contract located at $workspace/src/MyDisplay/PL/MyDisplayPDF.
    
    ```
    <!--Current Display -->
    <h2 alignment="center">{{Labels::CurrentDisplayId; defaultLabel=Current Display}}</h2>
    <table name="CurrentDisplayTable" dontBreakRows="false" tableLayout="noBorders">
      <tbody>
        <tr>
          <td alignment="right" width="100">{{Labels::NameId; defaultLabel=Name:}}</td>
          <td alignment="left" width="130">{{Declarations::currentDisplay.name}}</td>
          <td alignment="right" width="100">{{Labels::CustomerId; defaultLabel=Customer:}}</td>
          <td alignment="left" width="130">{{Declarations::currentDisplay.luCustomer.name}}</td>
        </tr>
        <tr>
          <td alignment="right">{{Labels::DescriptionId; defaultLabel=Description:}}</td>
          <td>{{Declarations::currentDisplay.description}}</td>
          <td alignment="right">{{Labels::TypeId; defaultLabel=Type:}}</td>
          <td>{{Declarations::currentDisplay.type; toggleId=DomDisplayType; toggleField=text}}</td>
        </tr>
        <tr>
          <td alignment="right">{{Labels::CompetitorId; defaultLabel=Competitor:}}</td>
          <td>{{Declarations::currentDisplay.competitorDisplay; toggleId=DomBool; toggleField=text}}</td>
          <td/>
          <td/>
        </tr>
      </tbody>
    </table>
    ```
3. Save your changes.