Define the CDT configuration
  • 21 Mar 2024
  • 1 Minute to read
  • Dark
    Light

Define the CDT configuration

  • Dark
    Light

Article summary

Define one or multiple data table configurations. When you place an instance of the Configurable Data Table (CDT) Lightning component into a Lightning record page layout, you specify which data table configuration should provide the content of that component.

  1. From the App Launcher, select Data Table Configurations, then select New.
  2. In the New Data Table Configuration dialog, enter information or make selections:
    • Data Table Configuration Name—Enter a descriptive name for the configuration.

    • Data Table Id—​Enter a unique identifier the configuration.

    • Data Table Label Override—Enter a user-friendly label that will appear in rendered table header in the CDT Lightning component.

    • Data Table Label—Enter a custom label name that will appear in rendered table header in the CDT Lightning component. You must use the API name and include a namespace prefix. If the custom label doesn't have a namespace prefix, enter c. for the namespace prefix. For example, zpf.DataTableLabel or c.DataTableLabel.

      The Data Table Label field value will be displayed only if the Data Table Label Override field is not entered.

    • sObjectName—Enter the API name of the Salesforce object that contains the data you'll be displaying in the CDT Lightning component. For example, Account or Contract for a standard Salesforce object, or zpf__ProductGroupAction__c, and so on.
      If you want to use a custom object, use the format namespace__CustomObjectName__c, and include a namespace prefix. If the custom object doesn't already have a namespace prefix, enter c. for the namespace prefix.

    • Parent Field Name—Enter the field name that is mapped to a parent record (if required). For example, in order to show Contacts for an Account, enter the Parent Field Name as AccountId.

    • Review Option—From this dropdown, choose the desired scrolling or paging behavior for the data rows displayed in the CDT Lightning component.

    • Number of Records per Page—Enter the number of records to be displayed per page if you chose the --None-- or Paging review option.

    • Field Width Option—From this dropdown, choose the desired column width behavior.

    • Header Buttons Label—Enter the API name of the Custom Label that contains the user-friendly label of the header-level picklist button as it appears in the CDT Lightning component.

      By default, this value is zpf.DataTableHeaderButtonsLabel, which will display Actions as the picklist label for header-level action buttons.

  3. Select Save.

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.