There are a number of predefined variables in the expression language. The following list all of the available variables:
LOGIN - the login of the current user
LOGIN_ID - the login id of the current user
LOGINS_IN_GROUP - the group of logins belonging to the group the current user is in
PROJECT - code of the current project
(v2.6.0+)
TODAY - the current day at midnight (12:00am)
NOW - the current day and time
NEXT_DAY - the next day from today (tomorrow)
NEXT_MONDAY - the next Monday from today
NEXT_TUEDAY - the next Tuesday from today
NEXT_WEDNESDAY - the next Wednesday from today
NEXT_THURSDAY - the next Thursday from today
NEXT_FRIDAY - the next Friday from today
NEXT_SATURDAY - the next Saturday from today
NEXT_SUNDAY - the next Sunday from today
PREV_DAY - the previous day from today (yesterday)
PREV_MONDAY - the previous Monday from today
PREV_TUESDAY - the previous Tuesday from today
PREV_WEDNESDAY - the previous Wednesday from today
PREV_THURSDAY - the previous Thursday from today
PREV_FRIDAY - the previous Friday from today
PREV_SATURDAY - the previous Saturday from today
PREV_SUNDAY - the previous Sunday from today
THIS_YEAR - the first day of this year at midnight (12:00am)
NEXT_YEAR - the first day of next year at midnight (12:00am)
PREV_YEAR - the first day of the previous year at midnight (12:00am)
THIS_MONTH - the first day of this month at midnight (12:00am)
NEXT_MONTH - the first day of next month at midnight (12:00am)
PREV_MONTH - the first day of the previous month at midnight (12:00am)
THIS_HOUR - this hour at 0 minutes
NEXT_HOUR - the next hour at 0 minutes
PREV_HOUR - the previous hour at 0 minutes
NEXT_HOUR - the next hour at 0 seconds
PREV_HOUR - the previous hour at 0 seconds
These variables can be used for to refer to state information in searches. This expression will retrieve all the login information for the current user.
They can also be used to find items between certain dates. This expression will retrieve all snapshots for this week starting at Sunday.
The following are shorthands that do not require a starting point or environment sobject. They can be used in an absolute expression:
login - the currently logged in user login attribute
project - the current project
date - a date object with today's date
palette - a palette object used for accessing different attributes of the palette for the current project. e.g. @GET(palette.background) can be used in the css for a Custom Layout Widget
The following are shorthands that require a starting point or environment sobject:
parent - the parent of the current related sobject @GET(parent.code)
search_type - the sType sobject. e.g. @GET(.search_type.title)
connect - the connected sobject registered in the connection sType. Refer to the API methods like connect_sobjects() and get_connected_sobjects()
To filter down to a particular connected sobject based on the context attribute, which defaults to 'task', use @CONTEXT.
e.g. @GET(prod/asset.connect['@CONTEXT','some_task'].description)
The following variables are only used in Naming. Refer to the file naming section for details.
EXT - file extension
BASEFILE - the filename portion of the file without the extension