Token Types
The following types of tokens are available in Logi reporting products:
Token Type | Description |
---|---|
@Application | Represents values set in the Application object from Application State, set programmatically by another application. Does not work for values set directly in Web.config or web.xml files. These values are for global variables that span all instances of the application. Format: @Application.<session param ID> Example: @Application.LogFileFolder~ |
@Chart | Represents a data value from the child datalayer of a Chart or Chart Canvas element. Format:@Chart.<column name>~ Example: @Chart.OrderDate~ |
@Compare | Represents the True or False result of a Compare Filter or SQL Compare Filter evaluation. |
@Constant | Represents the value of a user-defined constant, as defined in the _Settings definition in the Constant element. Format:@Constant.<Name Attribute>~ Example: @Constant.CompanyName~ |
@Cookie | Represents the value of a cookie. Cookies can be set in Logi applications using the Save In Cookie attribute of certain Input elements or, in Logi Info, by using the Set Cookie Vars procedure element. Format:@Cookie.<Input Element ID>~ Example: @Cookie.Order~ |
@Data | Represents the data value from the child datalayer of an element, such as a Data Table, that is not a chart. Format:@Data.<Column Name>~ Example: @Data.CustomerID~ |
@Date | Represents relative dates for reports and report scheduling (see @Date Tokens list below). Format: @Date.<date identifier>~ Example: @Date.Yesterday~ |
@FileUpload | Returns information in a procedure task about a file upload process (see @File Upload Tokens, below). |
@Function | Represents the value of predefined functions (see @Function Identifiers below). Format: @Function.<function name>~ Example: @Function.DateTime~ |
@Input | Input parameter variable, used inside external JavaScript files. Format: @Input.<value ID>~ Example: @Input.FileName~ |
@Local | Represents a data value from the first row of the child datalayer of a Local Data element, see Datalayers. Local data is accessible anywhere within the report definition. Child elements of this datalayer, such as a Calculated Column or Condition Filter, reference the data with @Data tokens. Format: @Local.<value ID>~ Example: @Local.ReportTitle~ |
@Measure | Represents the value of XOLAP measures; used only in the XOLAP Formula attribute of the XOLAP Calculated Measure element. Format: @Measure.[<measure name>]~ Example: @Measure.[Sales Amount]~ |
@Procedure | Represents results of operations by Process task procedures, including datasource interactions, file system and email operations, and associated error messages (see Special Identifiers below). Format: @Procedure.<procedure ID>.<value ID>~ Example: @Procedure.GetTaxes.SalesTax~ |
@Repeat | Represents a data value from the child datalayer of a Repeat Elements element. Format: @Repeat.<Column Name>~ Example: @Repeat.data_type~ |
@Request | Represents values supplied in a URL's query string and in Link Parameters, and the values of User Input elements POSTed by an HTML form. Format: @Request.<request variable name>~ Example: @Request.EmployeeID~ |
@Session | Represents the values of the application's Session variables, which are unique for each user session. Format: @Session.<session param ID> Example: @Session.SessionID~ |
@Shared | Represents the parameter value passed from a Shared Element Params element. Format: @Shared.<shared param ID> Example: @Shared.myValue1~ |
@SingleQuote | A token prefix that provides special processing for other tokens. Prefix a token with @SingleQuote to wrap its values in single quotes. Used primarily to put single quotes around a comma-separated string of values, so they can be used in SQL queries. For example, values before: Red,White,Blue and after: 'Red','White','Blue'. Cannot be used with @Data, @Chart and @Heatmap tokens. Format: @SingleQuote.<token type>.<identifier>~ Example: @SingleQuote.Request.MyElementID~ |