Skip to content

Commit 1359dc2

Browse files
committed
/DataSource now always returns MDX for pivot, even when not in manual mode
1 parent 081d133 commit 1359dc2

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

MDX2JSON/Utils.cls.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ Get information about pivot. <br>
165165
set dataSource = ##class(%DeepSee.Dashboard.Pivot).%OpenId(sourceId,,.st)
166166
return:($$$ISERR(st)) st
167167
168+
if (dataSource.mdx="") {
169+
set st = ##class(MDX2JSON.Dashboard).GetMdx(pDataSource, .mdx, .basemdx)
170+
return:($$$ISERR(st)) st
171+
set dataSource.mdx = mdx
172+
}
168173
set st = ##class(%ZEN.Auxiliary.jsonProvider).%ObjectToJSON(dataSource, .out)
169174
170175
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Request body:
107107

108108
{"MDX": "SELECT NON EMPTY [Product].[P1].[Product Category].Members ON 0,NON EMPTY [Outlet].[H1].[Region].Members ON 1 FROM [HoleFoods]"}
109109

110-
[Result](../../wiki/MDX-output)
110+
[Result](https://github.com/intersystems-ru/Cache-MDX2JSON/wiki/MDX-output)
111111

112112
Please note that corresponding cube must be compiled and built beforehand.
113113

0 commit comments

Comments
 (0)