When using $SYSTEM.Status.DecomposeStatus(tSC, .tErrorList) in ObjectScript to get the lsit of errors (I need to do this so that I can generate a custom JSON with the error messages) what is the type of tErrorList returned and how to intialize?
I need to know the type to iterate through it, I have tried dynamic array methods sich as %Size() also $LISTLENGTH to get the size, but both fails, so obviously not that, and being new to InterSystems I find the documentation assumes a new person knows what is behind the classes and how it was implemented from the start. The documentation of the does not state at all what the type of errorlist is, the documentation. Also it is "ByRef" so I need to initialize it to something before calling DecomposeStatus()?:
Returns the error text and error information for statuscode. The information is returned through the errorlist parameter. If the qspec parameter contains "d" flag, then the error text is also displayed to the screen. The user can also specify the language in which the error text is returned using language parameter.