Export Report

ExportReportImg01

Standard Action Export has the following properties:

Category Property  
General Properties Caption

ExportReportImg02

Tooltip
Enabled by Default
Consider User Conditions
Template
Show Filters
Line Height
Style Control Type
Image Type
Image
Image Class
Disabled Image
Disabled Image Class
Action Group Button Class
Action Group Disabled Button Class
Button Class
Disabled Button Class
Template Include Totalizers
Include Conditional Formatting
Report Title Title Font Size
Title
Paper Paper Size
Paper Orientation

 

In order to read about the properties Caption, Tooltip, Enabled by Default, Control type, Image, Image class, Disabled Image, Disabled Image Class, Action Group Button Class, Action Group Disabled Button Class, Button Class and Disabled Button Class follow this link: Standard Actions

 General Properties:

Consider Users Conditions:

Specifies whether to consider in the navigation the conditions inserted by user directly in the Conditions of the object, like it is displayed above for Export object:

ExportReportImg03

 

Template:

Specifies the template from where all the ExportReport will take its printblocks and code. This could be useful for adding the header and footer of all the reports. This template will be a procedure. You can use &Title variable and this will be replaced with the title of the Report.
 
For example, we create a procedure ExportReportTemplate and assign it to this property:

ExportReportImg06

ExportReportImg07

ExportReportImg08

We build the application and visualize the results:

ExportReportImg09

User Print blocks and User code

You can insert user print blocks in Export Report objects, and add user code in the source of it to define its behaviour. The code and the printblocks added will not be overwritten when reapplying the pattern. The user printblocks should have the prefix 'user'.

ExportReportImg10

ExportReportImg11

You can also replace the default WorkWithPlus printblocks used on the Export Report. In order to use this feature a new printblock has to be created. The name of this new printblock must start with usercustom and go on with the name of the printblock that is going to be replaced.
For example, if you want to replace the default printBlockLines printblock with your own printblock, you should create a new printblock called usercustomprintBlockLines. Then, you should apply WorkWithPlus in the transaction in order to generate the procedure properly.
This can be done with every WorkWithPlus printblock in order to customize the report.

 

Show Filters:

Specifies whether to include or not the filters added in the object that generates this export to PDF archive. This property can be False (will not include any filters), or Only modified (will show only the ones that user inserted some filter value).
 
For example, we set this property as 'Only modified', and in PersonWW we select some search filters:

ExportReportImg04

We press in 'PDF' action and visualize the results:

ExportReportImg05

 

Line Height:

Specifies the amount of rows that each record of the PDF will occupy. The possible values are:

  • <Automatic>: the line height will be 3 rows if any column have more than 1 row in its height definition.
  • 1 row - 10 row: the line height will the specified.

GeneXus does not support having a dynamic line height. This means that if a line occupies 3 rows but the data of the field fits in one row, there will be two rows empty for that record. The StandardAction added in a particular instance has this property, so you can have a default value and customize some of the instances.

Example of Automatic value

ExportReportImg12

 

Properties of Category Template:

Include Totalizers

Specifies whether totalizers are included in the Export Report or not.

In new KBs, the totalizers will be enabled by default.

Include Conditional Formatting

Specifies whether Conditional Formatting is included in the PDF or not.

 

Properties of Category Report Title:
 

Title Font Size:

Specifies the size of the font's title.


Title:

Specifies the title that will be added to the PDF document. In the example above this value is 'Persons List' for the StandardAction ExportReport related to Person transaction. You can use the tags <TRN_NAME>, <TRN_DESCRIPTION>, <TRN_DESCRIPTION_PLURAL>, <WW_CAPTION>

Properties Of Category Paper:
 

Paper Size:

Specifies the size of the paper where the PDFs will be generated. The options are: Letter, Legal, Exclusive, A4, A5, B4, B5 


Paper Orientation:

Specifies the orientation of the paper where the PDFs will be generated. The options are: Portrait and Landscape.