Question
ING Belgium SA NV
BE
Last activity: 26 Aug 2024 7:23 EDT
Custom format dateTime property in correspondence
Hi,
I'm trying to format a DT-property as "dd/MM/yyy" in my correspondence rule.
Currently in the connector to the "Send email" block, I set a param.TempDate as @FormatDateTime(.DateProperty,"dd/MM/yyyy","","") and use the param.TempDate as a pxDisplayText reference in my correspondence rule.
This is working, but probably far from an ideal solution.
I'm able to call the FormatDateTime function directly in jsp, but then, the difficulty is how to get the propertyvalue passed as a parameter to this function. I don't want to refer hardcoded to pyWorkPage page, it should read the property from the current context.
Looking forward to your feedback!