Tag Reference

This document lists all the built-in tags in the report engine. You can use any of the tags included here, or define your own.

Tag syntax

Tags are special commands that go inside <#...> delimiter. Those will be replaced by KNOIWNS when running the report.

Tags cannot be escaped, but you can always insert literal <# or ; characters by defining report expressions and values. Say for example that you wanted to enter the following formula:

<#if(<#tag2>="";<#tag1>;<#tag1>;<#tag2>)>

In the following expression, if tag 2 is empty you will just output tag1, else you will output tag1;tag2. The problem with the formula above is that the ";" between <#tag1> and <#tag2> will be interpreted as a parameter separator, and the formula isn't valid. For this particular case, you can write the full string inside double quotes ("). <#tag1> and <#tag2> will still be replaced inside the double quotes, but FlexCel won't be misled into thinking the ; is a parameter separator. This formula will work fine:

<#if(<#tag2>="";<#tag1>;"<#tag1>;<#tag2>")>

As a more general approach for other cases (including if you want to enter a literal "<#"" into a formula) the solution is just to define report expressions or report variables with the text. So in the example above we could define a report expression:

Semicolon = ";"

and then write:

<#if(<#tag2>="";<#tag1>;<#tag1><#semicolon><#tag2>)>

Using expressions or variables you can escape any text you might need to, and it is the more general solution

Last updated