|
|
The Test Calculated Field Code option on the Development Actions (
|
io_showcase_currency_amount: 248.00 USD
io_showcase_date: 2012-12-11
io_showcase_integer: 42
io_showcase_number: 3.1426
io_showcase_string: Sample Text
io_showcase_text: Sample Text
io_showcase_timestamp: 2012-12-10T18:04:00.000-08:00
io_showcase_string + " and " + io_showcase_text
Showcase String and Showcase Text
io_showcase_number + io_showcase_integer
45.1426
"Hello " + 4242 + " Hello"
Hello 4242 Hello
io_showcase_currency_amount.getValue() * io_showcase_number
779.3648
date1=io_showcase_datedate2=io_showcase_timestamp.toLocalDate()date1.isBefore(date2) ? date1 : date2
2012-12-10
old_value = getOldFieldValue("io_showcase_integer")
new_value = io_showcase_integer
new_value - old_value
0
def today = new org.joda.time.DateTime();
def someDateTimeField = io_created_on
org.joda.time.Duration duration = new org.joda.time.Duration(someDateTimeField, today);
//duration.getStandardDays();
//duration.getStandardHours();
duration.getStandardMinutes();