Variables

Top  Previous  Next

 

Job_Variables_Header

 

Besides the basic principle of the n2pdf Server Task (the assembly of the PDF file from Notes documents or RichText fields), it is also possible to define the contents of Notes fields (which are not RichText fields) as variables, and integrate these into the content of the PDF file. You can use such a variable in the "Body" field or in the headers and footers (see "Page Settings") of the Job Document. A variable always has the name of the Notes field and is enclosed in square brackets (e.g.: [Server]).

 

The options for the variables are described below, with an example for the definition of a variable:

 

Basics_Balken

 

The option "Use variables" activates the function of variable generation and replacement.

 

In the following option "Notes field names", enter the names of the Notes fields that you want provided as variables. If you need multiple variables, separate them with a semicolon (;). The field names entered here are at the same time the names of the variables (enclosed in square brackets) that you can position in the content or in the header and footer.

 

email_Balken

 

The fields which contain Notes names represent a special feature in the Notes fields. These fields can also be used as variables. You have a few more options here for formatting the content.

 

Notes field names

Field names that contain Notes names and are to be made available as variables.

Abbreviate user name

All names are output in short form, i.e. elements such as "CN=" or "/O=" are removed.

Expand group names

If a group name is present in a field, the group is expanded into the individual Notes names (from the address book).

New line for each entry

If there are several names in a field, the names are divided by a line break in the output.

 

Example of the definition of a variable with the sample database

In the "Data source" tab, the sample database was set with the view "Log". In the "Variables" tab, set "Use variables" to "Yes". The definition of variables is then activated. In the field "Notes field names", enter the name of the Notes field "Server". Each document in the log file documents has a field named "Server". As a result of the entry in the Job Document, the content of the field is supplied as a variable. You can then use this variable e.g. in the header of the document.

variablen_definition

 

If you now create the PDF file, the name of the server will appear in the header on each page of the PDF document.

variablen_im_pdf