The following video walks through the steps required to use table component in Interactive Communications for print channel documents.

Tables are used to display data in a tabular manner. The rows in the table need to grow or shrink depending on the data returned by the data source. To use a table in print channel document, we need to create layout file(xdp file) using AEM Forms Designer. In this layout file, we add the table with the required number of columns. Make sure the column field object type is either TextField or Numeric Field depending on your requirements. For each of the column, fields make sure the data binding is set to Use Name.

Also to make the table dynamic, make sure you have marked the Row as repeating.Once you have defined your table, you will import this xdp into AEM Forms. This xdp will be the basis for creating the layout fragment

To use a table in print channel document, we need to create layout fragment. Layout fragment is a special type of document fragment which is based on xdp. Typically you will use layout fragments for displaying tabular data. To create layout fragment please follow steps below

    1.    Point your browser to forms and documents.

    2.    Click Create | File Upload.

    3.    Select the xdp which contains the table.

    4.    Point your browser to document fragment

    5.    Select "Create | Layout Fragment"

    6.    Select the xdp that you uploaded in the earlier step.

 

 

Try it on your own server

Download the assets file.

Included in the assets associated with this article are the following:

    Layout Fragment

    Form Data Modal

    Interactive Communication Document

Unzip the assets file on to your local drive. Import the following files using package manager into crx.

KTDataModal.zip

ConfigureTableExercise.zip

Configure Tomcat as described here.

Open the Interactive Communication Document in edit mode.

Add and configure the table to the "Contributions" section.

Preview Interactive Communication Document.

Download

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy