Timothy Huggins · Sep 7, 2018 go to post

It is possible. You will need to override the %Get and  %GetSerializedMetadata method of %SQL.CustomResultSet.

It gets a bit messy but works fine.

Timothy Huggins · Apr 4, 2017 go to post

You could use  the %SYS.GlobalQuery NamespaceList query instead - there is a parameter to include/exclude system globals.

rs=##class(%ResultSet).%New()
rs.ClassName="%SYS.GlobalQuery"
rs.QueryName="NameSpaceList"
sc=rs.%Execute($namespace,"*",0)

Timothy Huggins · Nov 22, 2016 go to post

Take a look at the Config.Namespaces class in the %SYS namespace.

It looks like the CopyMaps method should do the job.

Timothy Huggins · Nov 22, 2016 go to post

Take a look in the Config.Namesaces class in the %SYS namespace.

It looks like the CopyMaps method should do the job.