Dynamic Values

Top  Previous  Next

You can assign dynamic values with $vof() function for fields From Date, To Date, Default Date and Value. You can also use "today" as value for all these fields. "today" assigns the date of the client computer which is fare enough for most cases.

Today according to the Server Time

If you want you to use the date of the server computer instead of the local computer's date then you should include a node to your XML that contains the server time in integer format.

Example:

Value       : $vof(/servertime/time)

Value Format: Integer

Note:
servertime is a data source provided by the MoreMotion automatically.

 <servertime>

    <time>1184593194271</time>

    <zoneoffset>7200000</zoneoffset>

    <timestamp>2007-07-16 16:39:54</timestamp>

    <date>2007.07.16</date>

    <intdate>1298239200000</intdate>

 </servertime>

 

Relative Date Definitions

When you use "today" or Server Time you can additionally use relative definitions together with them.

Relative definitions symbols:

n Minute
h Hour
d Day
m Month
y Year

Examples:

  today +5d 5 days later from the current date (according to the client computer)

  today -2m 2 months earlier than the current date (according to the client computer)

  $vof(/servertime/time) -1y  : 1 year earlier than the current date (according to the server computer)

  $vof(/servertime/time) +30n : 30 minutes later than the current date (according to the server computer)