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:

 

name="UserName"

Inserts a name of the current user.

 

name="TotalFirstDateTime"

The beginning of the report interval.

 

name="TotalLastDateTime"

The end of the report interval.

 

name="TotalTimeLength"

Length of the report interval (in hours, minutes, seconds).

Parameters:

       mode="Full|HideSeconds|DecimalsOfHour|RoundUp5Min|RoundUp10Min|RoundUp15Min|RoundUp20Min|RoundUp30Min|RoundUpHour"

 

name="TotalProjects"

Total of projects in the report.

 

name="PageCount"

Total of pages of the report.

 

name="PageNumber"

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.

 

name="FileName"

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:

 

name="ProjectUID"

Unique identifier of the current project.

 

name="ProjectNumber"

Serial number of the current project.

 

name="ProjectName"

Name of the current project.

 

name="ProjectDesc"

The description of the current project.

 

name="ProjectFirstDateTime"

The beginning of the report interval.

 

name="ProjectLastDateTime"

The end of the report interval.

 

name="ProjectTimeLength"

Length of the interval (in hours, minutes, seconds) of the report.

Parameters:

       mode="Full|HideSeconds|DecimalsOfHour|RoundUp5Min|RoundUp10Min|RoundUp15Min|RoundUp20Min|RoundUp30Min|RoundUpHour"

 

name="ProjectDuration"

Project duration (in seconds).

 

 

Macros operational in Tasks loop only:

 

name="TaskUID"

Unique identifier of the current task.

 

name="TaskOwnerUID"

Unique identifier of the parent of the current task.

 

name="TaskNumber"

Serial number of the current task.

 

name="TaskName"

Name of the current task.

Parameters:

       type="Short|FullTask|FullProject" // default FullTask

 

name="TaskDesc"

The description of the current task.

 

name="TaskFirstDateTime"

The beginning of the task interval.

Parameters:

       inclchild="True|False" // default = TRUE

 

name="TaskLastDateTime"

The end of the task interval.

Parameters:

       inclchild="True|False" // default = TRUE

 

name="TaskTimeLength"

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

 

name="TaskDuration"

Task duration (in seconds).

 

 

Macros operational in Periods loop only:

 

name="PeriodUID"

Unique identifier of the current period.

 

name="PeriodNumber"

Serial number of the current period.

 

name="PeriodDesc"

The description of the current period.

 

name="PeriodBeginDateTime"

The beginning of the period interval.

 

name="PeriodEndDateTime"

The end of the period interval.

 

name="PeriodLength"

Period length (in hours, minutes, seconds).

Parameters:

       showseconds="True|False" // defaults to application settings

 

name="PeriodDuration"

Period duration (in seconds).

 

 

Macros operational in time based loops only:

 

name="LoopBeginDateTime"

The beginning of the current loop interval.

 

name="LoopEndDateTime"

The end of the current loop interval.

 

 

For example:

 

<#macro name="PeriodLength" length="20" alignment="Center"/>

 

 

See also:

       Template language overview

       Translation tables

       Loops

       Conditions

       Comments

       Parameters

 

 


Time Tracker - Download - Buy now