Skip to content

Commit 1c30217

Browse files
committed
Filters and filter values for all types of datasource: cube, pivot, kpi, metric on /FilterValues request
1 parent dacf0f9 commit 1c30217

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MDX2JSON/Utils.cls.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ Get all filters for DeepSee Cube in JSON format.<br>
123123
<FormalSpec>pCube:%String,pValues:%Boolean=0</FormalSpec>
124124
<ReturnType>%Status</ReturnType>
125125
<Implementation><![CDATA[
126-
set st = ##class(%DeepSee.Dashboard.Utils).%GetFiltersForDataSource(pCube_".cube",.tFilters)
126+
set st = ##class(%DeepSee.Utils).%CubeExists(pCube)
127+
set:$$$ISOK(st) pCube = pCube _ ".cube"
128+
set st = ##class(%DeepSee.Dashboard.Utils).%GetFiltersForDataSource(pCube,.tFilters)
127129
return:$$$ISERR(st) st
128130
return:($d(tFilters)=0) $$$ERROR($$$GeneralError,"Empty Filter values array. Cube does not exist?")
129131

0 commit comments

Comments
 (0)