User bio
404 bio not found
Member since Nov 1, 2019
Posts:
Replies:
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
Using %DynamicObject throws an exception at runtime
ERROR #5002: Cache error: <CLASS DOES NOT EXIST>zGetED0005A+84^xxxxxxx *%Library.DynamicObject
Certifications & Credly badges:
Rui has no Certifications & Credly badges yet.
Global Masters badges:
Rui has no Global Masters badges yet.
Followers:
Rui has no followers yet.
Following:
Rui has not followed anybody yet.
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