Note: You'll have to encode the following characters to make the <text> tag display them in your ZML snippets:
- Encode & (ampersand) as & or &
- Encode < (less than) as < or <
- Encode > (greater than) as > or >
- Encode ' (single quotes) as ' or '
<%
var_content = Products[ID=3888833000000119021].Product_Description;
var_encoded_content = replaceAll(var_content, "&", "&");
%>
<text type='Text' renderAsHtml='true' value='<%=var_encoded_content%>' size='5' color='#333333'></text>
Default Value
- Text
type | value | Example |
---|---|---|
Text | Specify a static string | <text type='Text' value='Hello World'/> |
Form Data | Fetches a value from a ManageEngine AppCreator application's form, based on the said aggregate. | <text type='Form Data' value='appLinkName.componentLinkname.fieldLinkName.aggregate'/># |
Note:
- #An aggregate must be specifies for the Form Data attribute.
- The aggregate values that can be computed are: sum, minimum, maximum, median, average, count, distinctCount
Aggregate | Description | Syntax |
---|---|---|
sum | Computes the sum of all the values in a specified form field. | <text type='Form Data' value='appLinkName.formlinkname.fieldlinkname.sum'/> |
minimum | Computes the minimum of all values in a specified form field. | <text type='Form Data' value='appLinkName.formlinkname.fieldlinkname.minimum'/> |
maximum | Computes the maximum of all values in a specified form field. | <text type='Form Data' value='appLinkName.formlinkname.fieldlinkname.maximum'/> |
median | Computes the median of all values in a specified form field. | <text type='Form Data' value='appLinkName.formlinkname.fieldlinkname.median'/> |
average | Computes the average of all values in a specified form field. | <text type='Form Data' value='appLinkName.formlinkname.fieldlinkname.average'/> |
count | Computes the count of all the records in a specified form. | <text type='Form Data' value='appLinkName.formlinkname.ID.count'/> |
distinctCount | Computes the distinct number of occurances of a value in a specified form field. | <text type='Form Data' value='appLinkName.formlinkname.fieldlinkname.dictinctCount'/> |
- value acts as a source attribute. i.e: Attributes including size, bold, italic, fontFamily, color and bgColor are styling attributes for the text content and applicable only when a value is specified.
- criteria attribute is optional.
- criteria attribute can be used to add an additional filter to display a specified aggregate.
Syntax | <text value='thisapp.Products.Unit_Price.sum' numberScale='K'/> |
---|---|
Output |
Note:
- numberScale attribute is optional.
Syntax | <text value='thisapp.Products.Unit_Price.sum' decimalPlaces='2'/> |
---|---|
Output |
Note:
- decimalPlaces attribute is optional.
Syntax | <text value='thisapp.Products.Unit_Price.sum' thousandSeparator=','/> |
---|---|
Output |
Note:
- thousandseparator attribute is optional.
Syntax | <text value='thisapp.Products.Unit_Price.sum' decimalSeparator='.'/> |
---|---|
Output |
Note:
- decimalseparator attribute is optional.
Syntax | <text type='Text' value='Hello World' fontFamily='Georgia'/> |
---|---|
Output |
Note:
- fontFamily attribute is optional. Applicable only when a value is specified.
- If no fontFamily is specified for a value, the text acquires the fontFamily of the application theme. Each application theme uses a different fontFamily.
Syntax | <text type='Text' value='Hello World' size='8'/>
|
---|---|
Output |
Note:
- size attribute is optional.
- true
- false
Syntax | <text type='Text' value='Hello World' bold='true'/> |
---|---|
Output |
Note:
- bold attribute is optional.
- false
Syntax | <text type='Text' value='Hello World' italic='true'/> |
---|---|
Output |
Note:
- italic attribute is optional.
Syntax | <text type='Text' value='Hello World' color='#FF00FF'/> |
---|---|
Output |
Note:
- color attribute is optional.
Syntax | <text value='Hello World' bgColor='#047B33'/> |
---|---|
Output |
Note:
- bgColor attribute is optional. Applicable only when a value is specified.
Syntax | <text value='Hello World' padding='20px'/> |
---|---|
Output |
Note:
- padding attribute is optional.
Syntax | <text value='Hello World' paddingTop='50px'/> |
---|---|
Output |
Note:
- paddingTop attribute is optional.
Syntax | <text value='Hello World' paddingRight='20px'/> |
---|---|
Output |
Note:
- paddingRight attribute is optional.
Syntax | <text value='Hello World' margin='50px'/> |
---|---|
Output |
Note:
- paddingBottom attribute is optional
Syntax | <text value='Hello World' margin='20px'/> |
---|---|
Output |
Note:
- paddingLeft attribute is optional
Example
Syntax | <text value='Hello World' margin='50px'/> |
---|---|
Output |
Note:
- margin attribute is optional
Example
Syntax | <text value='Hello World' marginTop='50px'/> |
---|---|
Output |
Note:
- marginTop attribute is optional
Example
Syntax | <text value='Hello World' marginRight='400px'/> |
---|---|
Output |
Note:
- marginRight attribute is optional
Example
Syntax | <text value='Hello World'' marginBottom='50px'/> |
---|---|
Output |
Note:
- marginBottom attribute is optional
Example
Syntax | <text value='Hello World' marginLeft='400px'/> |
---|---|
Output |
Note:
- marginLeft attribute is optional
action | Syntax |
---|---|
Link | <text value='Hello World' action='Link' url='A URL to be opened '/>* |
Form | <text value='Hello World' action='Form' componentLinkName='linkname of the ManangeEngine AppCreator form to be opened' appLinkName='linkname of the ManangeEngine AppCreator application to which the form belongs' />* |
Report | <text value='Hello World' action='Report' componentLinkName='linkname of the ManangeEngine AppCreator report to be opened' appLinkName='linkname of the ManangeEngine AppCreator application to which the report belongs' />* |
Page | <text value='Hello World' action='Page' componentLinkName='linkname of the ManangeEngine AppCreator page to be opened' appLinkName='linkname of the ManangeEngine AppCreator application to which the page belongs' />* |
Function | <text value='Hello World' action='Function' functionName='Name of the custom function to be triggered' />* |
* Learn in detail about each of the action types in the following sections.
Note:
- action attribute is optional.
- The action attribute acts as a source attribute. i.e: One or more of the following attributes viz: url, componentLinkName, appLinkName, functionName, parameters, successMessage, target, popupWidth and popupHeight will be applicable only when an action is specified.
Note:
- url attribute is optional.
- It is applicable only when <action='Link'>
action | Syntax |
---|---|
Form | <text value='Hello World' action='Form' componentLinkName='User_Details'/> |
Report | <text value='Hello World' action='Report' componentLinkName='User_Details_Report'/ |
Page | <text value='Hello World' action='Page' componentLinkName='User_Dashboard'/> |
Note:
- componentLinkName attribute is optional.
- It is applicable only when <action='Form'/'Report'/'Page'>
action | Syntax |
---|---|
Form | <text value='Hello World' action='Form' componentLinkName='User_Details' appLinkName='Resource_management'/> |
Report | <text value='Hello World' action='Report' componentLinkName='User_Details_Report' appLinkName='Resource_management'/> |
Page | <text value='Hello World' action='Page' componentLinkName='User_Dashboard' appLinkName='Resource_management'/> |
Note:
- appLinkName attribute is optional. You do not need to specify appLinkName if the component you are associating to the action, belongs to the same application you are currently in.
- It is applicable only when <action='Form'/'Report'/'Page'/'Function'>
action | Syntax |
---|---|
Form | <text value='Hello World' action='Form' componentLinkName='User_Details' appLinkName='Resource_management' parameters='App_name=${name}'/> OR <text value='Hello World' action='Form' componentLinkName='User_Details' appLinkName='Resource_management' parameters='App_name=Zoho Creator'/> |
Report | <text value='Hello World' action='Report' componentLinkName='User_Details' appLinkName='Resource_management' parameters='App_name=${name}' /> or <text value='Hello World' action='Form' componentLinkName='User_Details' appLinkName='Resource_management' parameters='User_Name='Rob'/>
|
Page | <text value='Hello World' action='Page' componentLinkName='linkname of the ManangeEngine AppCreator page to be opened' appLinkName='linkname of the ManangeEngine AppCreator application to which the page belongs' parameters='App_name=${name}' />* |
Syntax (to display data from a field) | <% |
---|---|
Syntax (to display static text) | <% |
Output (showing the static text) |