Skip to content

Commit af880f4

Browse files
committed
GetNSList
1 parent dd7c845 commit af880f4

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

MDX2JSON/Installer.cls.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,23 @@ Download list of files on https://raw.githubusercontent.com/ server.<br>
318318
</Method>
319319

320320
<Method name="GetNSList">
321+
<Description>
322+
Returns comma-separated list of all local availible namespaces</Description>
321323
<ClassMethod>1</ClassMethod>
322-
<Implementation><![CDATA[ do ##class(%CSP.Portal.Utils).%GetNamespaceList(.NspList)
324+
<Implementation><![CDATA[
325+
set st=##class(%CSP.Portal.Utils).%GetNamespaceList(.nsarrary)
326+
return:$$$ISERR(st) st
327+
set namespace = $O(nsarrary(""))
328+
set nslist=""
329+
while namespace '= "" {
330+
set enabled = $lg(nsarrary(namespace),1)
331+
set remote = $lg(nsarrary(namespace),2)
332+
if ((enabled = 1) && (remote=0)) {
333+
set nslist=nslist _ namespace _ ","
334+
}
335+
set namespace = $O(nsarrary(namespace))
336+
}
337+
return $e(nslist,1,*-1)
323338
]]></Implementation>
324339
</Method>
325340

0 commit comments

Comments
 (0)