Skip to content

Commit 97389e9

Browse files
committed
Fix Format value in KPI
1 parent d69a409 commit 97389e9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

MDX2JSON/Dashboard.cls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ ClassMethod WidgetToProxyObject(Widget As %DeepSee.Dashboard.Widget, CubeName As
115115
if $piece(Widget.dataSource, ".", *) = "kpi" {
116116
set kpiClass = ##class(%DeepSee.Utils).%GetKPIClass(Widget.dataSource)
117117
set obj.kpitype = $classmethod(kpiClass, "%GetSourceType")
118+
set widgetData = Widget.dataProperties.GetAt(1)
119+
set obj.format = widgetData.format // duplicating format data in case of incompatible widget
118120
}
119121

120122
// Widget is a portlet
@@ -123,7 +125,7 @@ ClassMethod WidgetToProxyObject(Widget As %DeepSee.Dashboard.Widget, CubeName As
123125
set:portletClass="" portletClass = Widget.subtype
124126
set obj.settings = ..PortletSettingsToArray(portletClass)
125127
}
126-
128+
127129
set obj.mdx = $g(mdx)
128130
set obj.name = Widget.name
129131
set obj.basemdx = $g(basemdx)

0 commit comments

Comments
 (0)