I wan't to pre-define a timestamp attribute on entry.
When the object is being created, it is not subtracting the hours from the CURRENT_TIMESTAMP:
- myBO.myTimestamp=TIME_ADD(CURRENT_TIMESTAMP, -myBO.Number)
User Guide on TIME_ADD
Description:
Returns the timestamp resulting from adding/subtracting the specified number of hours to the specified timestamp
Parameters:
An expression producing timestamp and an expression producing a number to be added or subtracted (if the number is negative) to the timestamp
Example:
If TIME_ADD (Account.OpeningTime), 4) = 07/04/2004 12:00 Then …
Tried:
myBO.myTimestamp=TIME_ADD(CURRENT_TIMESTAMP, -myBO.Number)
myBO.myTimestamp=TIME_ADD(CURRENT_TIMESTAMP, -(myBO.Number))
Cheers