Question
· Aug 3, 2023

How to initialize a new Object

Hi,

I try to initialize some properties of a %DynamicObject during his creation.

I Try to use InitialExpression this way :

Property refDate As %Date [InitialExpression = $piece($horolog,",",1)];

But it doesn't compile

I don't found if %DynamicObject can have a constructor to initialize properties by a calculated value, like other languages.

Product version: IRIS 2023.1
Discussion (4)1
Log in or sign up to continue