Macros |
Syntax:
<#macro name="macro name"/>
Macros let the application substitute some information in the place of macro.
Parameters of any macro: length="0..x" // minimum length (default 0) alignment="Left|Right|Center" // text alignment (default Left)
Parameters of any date and time macro: datetype="Long|Short|Custom" // default Short showdate="True|False" // default True. Used only if datetype <> "Custom". showtime="True|False" // default True. Used only if datetype <> "Custom". showseconds="True|False" // defaults to application settings. Used only if datetype <> "Custom". format="XX" // Used only if datetype = "Custom". XX - Date/Time format strings control the formatting of dates and times.
Available names of macros:
Inserts a name of the current user.
The beginning of the report interval.
The end of the report interval.
Length of the report interval (in hours, minutes, seconds). Parameters: mode="Full|HideSeconds|DecimalsOfHour|RoundUp5Min|RoundUp10Min|RoundUp15Min|RoundUp20Min|RoundUp30Min|RoundUpHour"
Total of projects in the report.
Total of pages of the report.
Page number. It is possible to get the number of the previous page by specifying offset="-1" or the following page by specifying offset="1". The returned number will always be between 1 and PageCount. Parameters: offset="XX" // XX - positive or the negative offset added to current page number.
The filename the report is saved to. By specifying the offset parameter, it is possible to get the name of the following or previous page. Parameters: offset="XX" // XX - positive or the negative offset added to the current page number.
Macros operational in Projects loop only:
Unique identifier of the current project.
Serial number of the current project.
Name of the current project.
The description of the current project.
The beginning of the report interval.
The end of the report interval.
Length of the interval (in hours, minutes, seconds) of the report. Parameters: mode="Full|HideSeconds|DecimalsOfHour|RoundUp5Min|RoundUp10Min|RoundUp15Min|RoundUp20Min|RoundUp30Min|RoundUpHour"
Project duration (in seconds).
Macros operational in Tasks loop only:
Unique identifier of the current task.
Unique identifier of the parent of the current task.
Serial number of the current task.
Name of the current task. Parameters: type="Short|FullTask|FullProject" // default FullTask
The description of the current task.
The beginning of the task interval. Parameters: inclchild="True|False" // default = TRUE
The end of the task interval. Parameters: inclchild="True|False" // default = TRUE
Length of the task interval (in hours, minutes, seconds). Parameters: mode="Full|HideSeconds|DecimalsOfHour|RoundUp5Min|RoundUp10Min|RoundUp15Min|RoundUp20Min|RoundUp30Min|RoundUpHour" inclchild="True|False" // default = TRUE
Task duration (in seconds).
Macros operational in Periods loop only:
Unique identifier of the current period.
Serial number of the current period.
The description of the current period.
The beginning of the period interval.
The end of the period interval.
Period length (in hours, minutes, seconds). Parameters: showseconds="True|False" // defaults to application settings
Period duration (in seconds).
Macros operational in time based loops only:
The beginning of the current loop interval.
The end of the current loop interval.
For example:
<#macro name="PeriodLength" length="20" alignment="Center"/>
See also:
|