Docomotion enhances your Form capabilities by allowing dynamic tables populated with Salesforce information during output generation. These tables utilize data tags from Objects that are Children Relations of the Form’s Main Object.
Creating a Data Model for Tables: To add tables to a Form, ensure the Data Model contains data tags from Children Relations (refer to Defining a Data Model). In the Form Designer, these tags appear in the Data Repository Panel under blue T.
Adding Tables to the Form: Consider reading ‘Table Design‘ before adding a table.
Steps to create a table in a Form:
- In the Design panel, click where you want to insert the table.
- Create a table using Word tools with defined dimensions and appearance.
- Input necessary information into the cells.
- Format the table and text using Word tools.
- In the Title row, type titles suitable for the table tags.
- In the second row, add Table tags, ensuring dynamic table tags are under blue T.
Advanced Table Features: In addition to regular tables, Docomotion supports advanced table features:
- Block tables: Present tables as a list.
- Grouped tables: Group data according to Salesforce records.
- Nested tables: Incorporate tables within tables.
Table Blocking – Presenting Tables as a List
The Table Blocking feature creates a horizontal list format. It allows you to take a table field and add it record after record, in one line, with a separator between records. You can include more than one field in a Table Block to repeat a specific sequence; for example, you can have a repeated list for First Name Last Name
With the output of : John Smith, Jane Doe, Robert Brown.
Step-by-Step Instructions
Step 1:
Enter Placeholder Text: Enter constant text as a placeholder for the block table in the form. The Table must not wrap the end-of paragraph symbol. To ensure correct wrapping, it is recommended to write two words (as a placeholder), select only the first word, and then apply the TB (Table Block).
For example: type Firstname lastname
Step 2:
a. Select the first word only (so as to ensure the ENTER symbol is excluded), for example: Firstname lastname.
b. Insert Component: In the Data Repository pane, double-click B Table Block.
Step 3:
Configure Properties: In the Table Block Container Properties window, name the block table and set separators.
Tip: It is recommended to give the TB a meaningful name. Specify the desired separator in the Regular Separator field.
Confirm: Click “OK” to add the Table Block to the Form.
Step 4:
Add Fields: Select the text entered as a placeholder. Replace it with the fields and text you want repeated, in the desired sequence and formatting. If entering a sequence of fields, you may want to add a space between them.
Step 5:
Apply Logic: Re-open Table Block Properties window and add any necessary logic, similar to what is done on regular Table rows (blue T). This logic determines which records will be selected or omitted from the list.
Step 6:
Save: Click “Save”.
Table Grouping:
The Table Grouping feature organizes table data items based on Salesforce records. It supports Table Scripts and Tag scripts, allowing specific row and table visibility adjustments. Steps to add a Grouped Table:- Create a table in the Design panel.
- Select the table and double-click the Group Table icon in the Data Repository Tags panel.
- Add required table scripts and click OK.
- Create a table in the Design panel and format it.
- Select the cell for the nested table and add a new table.
- Add data tags from the first level to the original table cells.
- Add data tags from the 2nd level to the nested table.