Using Process Private Global:
ClassMethod setLayout(layout) As %Status
{
MERGE ^||layout = layout
Set node="^||layout"
For {
Set node=$query(@node) Q:node=""
Write node,"=",@node,!
}
Quit $$$OK
}Using local variable array:
ClassMethod arrayQuery(myArrayLocalName) [ PublicList = myArrayLocalName ]
{
Set node="myArrayLocalName"
For {
Set node=$query(@node) Q:node=""
Write node,"=",@node,!
}
}
Note: the idea of using Process Private Global was INSTEAD of local variable array all around, not merging etc.
- Log in to post comments