14.1 Create a PDF template

To create a new template for the PDF Maker module, click on the ADD TEMPLATE key or button on the right and indicate the name for the template and the reference module: the template will be available for the indicated module only. This means that we will find it in the PDF Print options only if it is located in that module. For example, if I create a template to print invitations to contacts, I will only find it inside a registry in the OTHER menu at the top right.

14.1 [1].png

The content of the template is organised into three different sections:

14.1 [2].png

Within the three areas you can enter:

Fixed text
It is possible to insert fixed text inside the Header, Body or Footer by positioning the cursor and starting to write the content:

14.1 [3].png

Variables
To insert variables, position the cursor at the point where you want to insert the variable, choose the type of variable to insert from the MODULE item above, and then click on Insert in the template:

14.1 [4].png

The system inserts a variable string that will be replaced with the value assumed by the field when the PDF is generated:

14.1 [5].png

Once the text has been entered, you can format fixed and variable text using the editor tools.
All the fields on the main module (Module) to which the template has been associated are available in the linked drop-down menu.

It is possible to insert variables on modules related to the main module (Module) also. There are two types of variables:

14.1 [6].png

14.1 [7].png

 

Variables in 1-to-1 relations

Variables in 1-to-many relations (connected blocks)

 

You can now select one of the already existing blocks (check that they refer to the module for which we are building the template) or start the wizard procedure to create a new block through Create Related Blocks:

14.1 [8].png

Click on CREATE A RELATED BLOCK

14.1 [9].png

14.1 [10].png

Choose the fields you want to display (from the left-hand column, using the cursor, shift the fields into the right-hand column)

14.1 [11].png

If appropriate, set a filter to display the desired data (e.g.: all Sales Orders in Approved status)

14.1 [12].png

Refine the table as desired and name the block

14.1 [13].png

Once the configuration is finished, the result will be like the one shown in the figure

N.B.: the "Table Fields" can be inserted in a PDF using the linked blocks.


Revision #1
Created 2 September 2024 07:59:06 by Admin
Updated 2 September 2024 07:59:07 by Admin