Skip to content

Commit 800b5e6

Browse files
committed
Get dashboard info
1 parent c3b4ec9 commit 800b5e6

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

MDX2JSON/Dashboard.cls.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Converts %DeepSee.Dashboard.Definition widgets into %ZEN.proxyObject.</Descripti
9393
set Widgetlist = ##class(%ZEN.proxyObject).%New()
9494
set Widgetlist.children = ##class(%ListOfObjects).%New()
9595
set Widgetlist.displayInfo = ..GetDashboardDisplayInfo(Dashboard)
96+
set Widgetlist.info = ..GetDashboardInfo(Dashboard)
9697
9798
set st = $$$OK
9899
try {
@@ -310,6 +311,20 @@ Converts %DeepSee.Dashboard.Widget display information into %ZEN.proxyObject.</D
310311
]]></Implementation>
311312
</Method>
312313

314+
<Method name="GetDashboardInfo">
315+
<Description>
316+
Converts %DeepSee.Dashboard.Definition display information into %ZEN.proxyObject.</Description>
317+
<ClassMethod>1</ClassMethod>
318+
<FormalSpec>Dashboard:%DeepSee.Dashboard.Definition</FormalSpec>
319+
<ReturnType>%ZEN.proxyObject</ReturnType>
320+
<Implementation><![CDATA[
321+
set Info = ##class(%ZEN.proxyObject).%New()
322+
set Info.title = Dashboard.title
323+
324+
return Info
325+
]]></Implementation>
326+
</Method>
327+
313328
<Storage name="Default">
314329
<Type>%Library.CacheStorage</Type>
315330
</Storage>

MDX2JSON/DashboardFilters.cls.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Converts %DeepSee.Dashboard.Definition widgets into %ZEN.proxyObject.</Descripti
1919
set Widgetlist.widgets = ##class(%ListOfObjects).%New()
2020
set Widgetlist.filters = ##class(%ListOfObjects).%New()
2121
set Widgetlist.displayInfo = ..GetDashboardDisplayInfo(Dashboard)
22+
set Widgetlist.info = ..GetDashboardInfo(Dashboard)
2223
2324
set st = $$$OK
2425
try {

0 commit comments

Comments
 (0)