Specialized Administration > Analyzing System and Business Information > Reports and Queries > Query Builder > Select or Constrain (Query Builder) > Adding and Editing Report Items > Macros
  
Macros
Macros specify values that are derived by the system at report execution time. If macros are used in a default value, the system evaluates the macro and displays the resulting value on the Criteria pane of the Report Builder. For example, the CURRENT_USER_NAME macro returns the name of the current user and is useful for showing information related to the user running a report.
The following table describes the predefined macros:
Name
Description
Type
CURRENT_USER_NAME
Name attribute of the current authenticated user.
String
CURRENT_TIME
Current system time. The time is formatted as a Java string using SimpleDateFormat and the method server timezone (specified by wt.method.timezone).
Date