|
An expression involves arithmetic operators +, -, *, / and % (for
remainders). It can use literal numbers, node id's (surrounded by
'?' symbols), session variables or UDM parameters. The expression
uses both date manipulation mechanisms and list functions
The Steps to Retrieve Data using Expressions -
- Create a UDM
- Add a child to the node.
- Select a specific dataport. Click on Next button.
- Then select from the dropdown list a specific datatype for
the new node being added. Click on Next button.
- Input database parameters for retrieving the data. Click on
Next button
- Input additional database parameters, if any.
- Add another child node to the newly created node, selecting
expression as the dataport. Click on Next button.
- You need to specify the new node's datatype. This can be of
three forms
I. Boolean (True or False)
II. Date and Time
III. Number
IV. String
- Select any one of these. Click on the link " what's this?".
This will open up a help for expressions which lists the various
expressions that can be selected.
Date Functions
This helps you retrieve specific date or time related to various
data. The date manipulation available with expressions are described
in the table below
|
date.startOfMonth (x)
|
Returns a Date
object containing the Date for the start of the month of x.
x must be a Date object.
|
|
date.timeNow ()
|
Returns the current
time as a Date object.
|
|
date.addDays (x, y)
|
Returns a Date
object with y days added to x. Here, x must be a Date and
y must be an integer. y can be negative.
|
|
date.addMonths (x, y)
|
Returns a Date
object with y months added to x. Here, x must be a Date and
y must be an integer. y can be negative.
|
|