Skip to content

Commit 0cb7948

Browse files
committed
Alternative MDX->JSON engine for 15.3+
1 parent 82ce8a0 commit 0cb7948

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

MDX2JSON/Utils.cls.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,21 @@ Automatic processing of MDX query and outputting resulting JSONP.<br>
6262
]]></Implementation>
6363
</Method>
6464

65+
<Method name="WriteJSONfromMDXNew">
66+
<Description><![CDATA[
67+
Automatic processing of MDX query and outputting resulting JSON.<br>
68+
<b>pMDX</b> - String containing MDX query.<br>]]></Description>
69+
<ClassMethod>1</ClassMethod>
70+
<FormalSpec>pMDX:%String</FormalSpec>
71+
<ReturnType>%Status</ReturnType>
72+
<Implementation><![CDATA[
73+
set Provider = ##class(%ZEN.Auxiliary.jsonMDXProvider).%New()
74+
set Provider.mdxQuery = pMDX
75+
set st = tProvider.%DrawJSON()
76+
return st
77+
]]></Implementation>
78+
</Method>
79+
6580
<Method name="WriteDrillthroughJSON">
6681
<Description><![CDATA[
6782
Automatic processing of MDX Drillthrough query and outputting resulting listing as JSON.<br>

0 commit comments

Comments
 (0)