How to register Office reports in Vertec
Operating mode
Cloud Suite
|ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
This article explains how to register Office Reports (Word, Excel, PDF).
A report must be registered before it can be accessed from the Print menu in Vertec. To register a report, go to the folder Settings > Reports & Scripts > Report templates and select New > Office report
.
Name |
Name under which the report appears in the Print menu. |
Active |
Only active reports appear in the menus. If you do not want to use a report, you can simply deactivate it here. |
Grouping/Single index |
With many different reports, the print menu for a particular item can quickly become confusing. To solve this problem, reports can be grouped and sorted during registration. This allows you to combine several reports into a group, which is then separated from the rest of the reports by a hyphen. Grouping is activated by entering a group number in the Grouping field on the report. All reports which have the same group number are combined into a group in the menu. The different groups are shown in the order of their group number. ![]() By default, the reports within a group are again sorted alphabetically. If a different sorting method is desired, this can be done by inserting numbers in the Single index field. |
Classes |
Specifies for which objects in Vertec the report is registered (e.g. projects or addresses). The report appears there in the Print menu. |
Condition |
You can define via a display condition whether or not the report should be shown in the Print menu. The result of this expression must return a Boolean Yes/No value. If the condition is met, the report appears in the Print menu; otherwise, it doesn't. For list reports, the report is only shown if the condition is met for all entries in the list. |
Output format |
For the output format, you have the choice between
If the selected output format does not match the registered templates – e.g. Excel is selected if only one Word template is stored – an error message appears. |
Single report/List report |
Specifies whether the report can be run on a single object or on a list of objects of the specified data type (class). |
Outlook App email template | Specifies whether the report can be used as an email template in the Outlook App. |
Filename |
Field in System Settings > Document storage = Internal You must enter a file name if you want to open, edit, and save documents stored on an activity (see below). |
Path |
Field in System Settings > Document storage = Filesystem or DMS Path to store the report document. The value In addition to fixed texts, you can use OCL expressions (enclosed with ![]() If the restricted filesystem access option is enabled in the Vertec.ini configuration file (default for Cloud Suite customers), the reports behave as follows:
|
Subject |
Document subject. You can use an OCL expression here, enclosed with You can still adjust the subject on the print dialog if it is shown (see next point). In the document, the You can also use the subject in the path (see above). The expression is In addition, the subject is used as the title of the activity if one is created (see below). |
Show dialog |
If |
Create activity |
If With System Settings > Document storage > Internal, the created activity is automatically shown in a new tab. The opened document is shown in the corresponding editor, where it can be edited directly further. And the button below the document preview is called |
Link on main object |
The activity is linked to the object from which it is started. |
Link on address |
The activity is associated with the address to which the document is sent. |
Activity type |
Here, you can assign an activity type to the generated activity. |
Office reports consist of a combination of a Word or Excel template for the layout and a report definition in the form of Python code for the content. For more information, see the Office reports (Word, Excel, PDF).
The Report definition page contains the Python code for the specified template.
The internal name refers to the code supplied by Vertec. This is shown under the Built-in
tab.
Under the Customization
tab, you can overwrite the supplied code. As soon as code is available under Customization, only this code is valid. If you want to change something, you have to copy the complete code from the Built-in tab and change it under the Customization tab.
Customer-generated or commissioned Office reports do not have built-in code or internal names. Instead, the code is inserted directly in the Customization
field.
If extended user rights are required in the Python code, e.g. for SQL access, the Extended rights
checkmark must be set below the report definition.
On the Document templates page, the appropriate template document is selected. For Word reports, this is a Word document with the file extension .docx
; for Excel reports, an Excel document with the file extension .xlsx
. As the Excel and Word templates share the code base, both can also be registered in the same registration at the same time.
Checkboxes |
When you check the checkbox
By activating the checkbox |
Download |
You can download and edit templates with the Download button. |
Upload |
You can upload a customized template with the Upload button. This process also copies the built-in report code and pastes it into the Customization tab if it is still empty (see Report definition section). |
Reset/Delete |
If the customer-specific template overwrites or customizes an existing Vertec default report, the button is named Reset. This enables you to remove the custom template and to restore the default report. ![]() Resetting not only resets the template to the default, but also removes the relevant report code from the Customization tab. Therefore, if you still require the customized code, you should copy it out before resetting. When you register a new, customized template, it is shown in black font. With the Delete button, you can remove the template again.
![]() |
When you activate the checkbox Own template per language
, the following list appears:
By selecting a language, a new row is created. Only one template can be defined per language.
Template |
Selects the appropriate template document. For Word reports, this is a Word document with the file extension |
Language |
A template can be specified for each language defined in the system. When printing, the language is automatically selected according to the following criteria:
If no template is defined for a language, the first template in the list is taken. |
Jargon |
Project, case, everyone. Here you can specify for which jargon (case or project language) the template should be used. If |
Name for automatic saving |
If the system setting is set to Filesystem or DMS, the storage path and document name are compiled as follows: The Path field on the main page of the report registration is used for all templates, if something has been entered there. It can contain both a path and a file name: ![]()
With internal document storage:
This means:
In addition to fixed texts, you can also use OCL expressions (framed with Within the placeholders, any OCL expression can be used, starting from the current object on which the document is created. In addition, the following OCL variables are available on reports:
Examples of OCL expressions:
|