Hi Chris,
Thanks for your help.
I've sorted the issue using $ZSTRIP function on the ReportDefinition.
<attribute name="Reaction" field="Reaction" expression='$ZSTRIP(%val,"*C")' />
Regards,
Rui
- Log in to post comments
Hi Chris,
Thanks for your help.
I've sorted the issue using $ZSTRIP function on the ReportDefinition.
<attribute name="Reaction" field="Reaction" expression='$ZSTRIP(%val,"*C")' />
Regards,
Rui
Using %DynamicObject throws an exception at runtime
ERROR #5002: Cache error: <CLASS DOES NOT EXIST>zGetED0005A+84^xxxxxxx *%Library.DynamicObject
Hi Andreas,
From the link, you got an IRIS for Health image, the issue is that the image has BYOL license instead of a Comunity Edition Licence.
Rui
After some investigation here is some code that works on v2015.2
// to create a dynamic array
SET results = ##class(%ListOfDataTypes).%New()
// to create a dynamic object
SET obj = ##class(%ZEN.proxyObject).%New()
SET obj.name = "John doe"
// add obj to the array
results.Insert(obj)
// create dynamic response object
SET response = ##class(%ZEN.proxyObject).%New()
SET response.Results = results
Write response.%ToJSON()
---------------------------------------------
{
"Results": [
{
"name": "John Doe"
}
]
}
Thanks,
Rui