forked from eduard93/Cache-MDX2JSON
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDashboard.cls.xml
More file actions
537 lines (477 loc) · 18.5 KB
/
Dashboard.cls.xml
File metadata and controls
537 lines (477 loc) · 18.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="IRIS" version="26">
<Class name="MDX2JSON.Dashboard">
<Description>
Class with methods related to DeepSee Dashboard and Widget processing.</Description>
<IncludeCode>MDX2JSON.MDX2JSON</IncludeCode>
<TimeCreated>63568,54242.448605</TimeCreated>
<Parameter name="folderName">
<Description>
Folder, from which we get Dashboards.</Description>
<Type>%String</Type>
<Default>Mobile</Default>
</Parameter>
<Method name="GetDashboardListSQL">
<Description>
Get SQL for folder, from which we get Dashboards. </Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>folderName:%String=..#folderName</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
set basesql = "SELECT MDX2JSON.ResolveText(title) AS title, fullName AS path, MDX2JSON.GetDashCover(bookCover) AS Cover FROM %DeepSee_Dashboard.Definition "
set basefilter = "WHERE ((NOT (foldername %STARTSWITH '$TRASH' or foldername %STARTSWITH 'HIDDEN')) OR foldername IS NULL) AND (MDX2JSON.IsItemVisible(fullName) = 1) "
return:folderName="" basesql _ basefilter
set filter = "AND folderName %STARTSWITH '" _ folderName _"'"
return basesql _ basefilter _ filter
]]></Implementation>
</Method>
<Method name="GetDashCover">
<Description><![CDATA[
Extracts dashboard cover from %DeepSee.Dashboard.Definition class bookCover property.<br>
Usage: Select MDX2JSON.Dashboard_GetDashCover(bookCover) FROM %DeepSee_Dashboard.Definition]]></Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>bookCover:%String=""</FormalSpec>
<ReturnType>%String</ReturnType>
<SqlName>GetDashCover</SqlName>
<SqlProc>1</SqlProc>
<Implementation><![CDATA[
do ##class(%ZEN.Auxiliary.jsonProvider).%ConvertJSONToObject(bookCover,,.obj,1)
return:$isobject(obj) obj.background.src
return ""
]]></Implementation>
</Method>
<Method name="IsItemVisible">
<Description><![CDATA[
Check visibility of folder item to current user.<br>
Usage: Select fullname, MDX2JSON.IsItemVisible(fullname) FROM %DeepSee_Dashboard.Definition]]></Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>fullName:%String=""</FormalSpec>
<ReturnType>%String</ReturnType>
<SqlName>IsItemVisible</SqlName>
<SqlProc>1</SqlProc>
<Implementation><![CDATA[
set visible = ##class(%DeepSee.UserLibrary.Utils).%FolderItemExists(fullName)
return:visible=1 1
return 0
]]></Implementation>
</Method>
<Method name="ResolveText">
<Description><![CDATA[
Resolve a localized text string at run time.<br>
A localized string can take the following forms:<br>
"String" -- not localized.<br>
"$$$String" -- equivalent to $$$Text("String","DeepSeeUser")<br>
"$$$String/Domain" -- equivalent to $$$Text("String","Domain")<br>
Equivalent to ##class(%DeepSee.UserPortal.Utils).%ResolveText(), but in SQL context<br>
Usage: Select MDX2JSON.Dashboard_ResolveText(title) FROM %DeepSee_Dashboard.Definition]]></Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Text:%String</FormalSpec>
<ReturnType>%String</ReturnType>
<SqlName>ResolveText</SqlName>
<SqlProc>1</SqlProc>
<Implementation><![CDATA[ return ##class(%DeepSee.UserPortal.Utils).%ResolveText(Text)
]]></Implementation>
</Method>
<Method name="OpenDashboardByName">
<Description><![CDATA[
Opens DeepSee dashboard by it's name. Returns status of aatempt to locate and open dashboard.
<b>DashName</b> - fullName property of %DeepSee.Dashboard.Definition class.<br>
<b>Dashboard</b> - OREF to opened dashboard would be passed here upon successfull execution.]]></Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>DashName:%Integer,*Dashboard:%DeepSee.Dashboard.Definition</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
kill Dashboard
set id = ""
set global = ##class(MDX2JSON.DashboardRS).#global
set dashclass = ##class(MDX2JSON.DashboardRS).#dashclass
for {
set id = $order(@global@(id))
quit:id=""
/// first we check that it's a dashboard (not a pivot, etc.)
set oid = ##class(%DeepSee.UserLibrary.FolderItem).%ComposeOid(id)
do ##class(%DeepSee.UserLibrary.FolderItem).%OnDetermineClass(oid, .class)
CONTINUE:class'=dashclass
/// second we check that it's the one we need
quit:$ZCVT(##class(MDX2JSON.DashboardRS).GetDashFullName(id),"L")=$ZCVT(DashName,"L")
}
return:id="" $$$ERROR($$$GeneralError,"Dashboard " _ DashName _ " does not exist")
set Dashboard = ##class(%DeepSee.Dashboard.Definition).%OpenId(id,,.st)
return st
]]></Implementation>
</Method>
<Method name="WidgetsToProxyObject">
<Description>
Converts %DeepSee.Dashboard.Definition widgets into %ZEN.proxyObject.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Dashboard:%DeepSee.Dashboard.Definition,*Widgetlist:%ZEN.proxyObject</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
#Dim widget As %DeepSee.Dashboard.Widget
set Widgetlist = $$$NewDynObj
set Widgetlist.children = $$$NewDynObjList
set Widgetlist.displayInfo = ..GetDashboardDisplayInfo(Dashboard)
set Widgetlist.info = ..GetDashboardInfo(Dashboard)
set st = $$$OK
try {
for i=1:1:Dashboard.widgets.Count() {
$$$Insert(Widgetlist.children,..WidgetToProxyObject(Dashboard.widgets.GetAt(i), ..GetWidgetCube(Dashboard, i)))
}
} catch ex {
set st = ex.AsStatus()
do ex.Log()
}
return st
]]></Implementation>
</Method>
<Method name="WidgetToProxyObject">
<Description>
Converts relevant parts of %DeepSee.Dashboard.Widget object into %ZEN.proxyObject.</Description>
<Internal>1</Internal>
<ClassMethod>1</ClassMethod>
<FormalSpec>Widget:%DeepSee.Dashboard.Widget,CubeName:%String</FormalSpec>
<ReturnType>%ZEN.proxyObject</ReturnType>
<Implementation><![CDATA[
set obj = $$$NewDynObj
if (Widget.dataSource '= "") {
set st = ..GetMdx(Widget.dataSource, .mdx, .basemdx)
set obj.dataSource = Widget.dataSource
} elseif (Widget.dataLink '= "") {
// Linked widgets processing
set mdx = ""
set basemdx = ""
set obj.Link = Widget.dataLink
}
// datasource is a kpi
if $piece(Widget.dataSource, ".", *) = "kpi" {
set kpiClass = ##class(%DeepSee.Utils).%GetKPIClass(Widget.dataSource)
set obj.kpitype = $classmethod(kpiClass, "%GetSourceType")
}
// Widget is a portlet
if Widget.type = "portlet" {
set portletClass = Widget.subtypeClass
set:portletClass="" portletClass = Widget.subtype
set obj.settings = ..PortletSettingsToArray(portletClass)
}
set obj.mdx = $g(mdx)
set obj.name = Widget.name
set obj.basemdx = $g(basemdx)
set obj.type =Widget.subtype
set obj.title = ##class(%DeepSee.UserPortal.Utils).%ResolveText(Widget.title) /// $$$ support
set obj.key = Widget.key
set obj.drillDownDataSource = Widget.drillDownDataSource
set obj.cube = CubeName
set obj.displayInfo = ..GetWidgetDisplayInfo(Widget)
set obj.controls = $$$NewDynObjList
set obj.dataProperties = $$$NewDynObjList
for i=1:1:Widget.controls.Count()
{
set control = ..WidgetControlToProxyObject(Widget, i, CubeName)
if $IsObject(control) {
$$$Insert(obj.controls,control)
}
}
for i=1:1:Widget.dataProperties.Count()
{
set dataProperty = ..WidgetDataPropertyToProxyObject(Widget.dataProperties.GetAt(i))
if $IsObject(dataProperty) {
$$$Insert(obj.dataProperties,dataProperty)
}
}
if ##class(%Dictionary.CompiledMethod).%ExistsId("MDX2JSON.Dashboard||Process"_Widget.subtype) {
do $ClassMethod("MDX2JSON.Dashboard", "Process"_Widget.subtype, Widget, obj)
}
if (Widget.properties.Count()>0) {
set obj.properties = $$$NewDynObj //##class(%ArrayOfDataTypes).%New()
do {
set property = Widget.properties.GetNext(.key)
//do:(key'="") obj.properties.SetAt(property,key)
do:(key'="") obj.properties.%DispatchSetProperty(key,property)
} while key'=""
}
if Widget.overrides.Count()>0 {
set obj.overrides = $$$NewDynObjList
do {
set overridestr = Widget.overrides.GetNext(.key) // we take DeepSee widget override string (in "json" format)
quit:key=""
do ##class(%ZEN.Auxiliary.jsonProvider).%ConvertJSONToObject(overridestr,,.override,1) // convert it into %ZEN.proxyObject
if $IsObject(override) {
$$$Insert(obj.overrides,override)
}
} while key'=""
}
return obj
]]></Implementation>
</Method>
<Method name="WidgetDataPropertyToProxyObject">
<ClassMethod>1</ClassMethod>
<FormalSpec>dataProperty:%DeepSee.Dashboard.DataProperty</FormalSpec>
<Implementation><![CDATA[
set obj = $$$NewDynObj
set obj.align = dataProperty.align
set obj.baseValue = dataProperty.baseValue
set obj.dataValue = dataProperty.dataValue
set obj.display = dataProperty.display
set obj.format = dataProperty.format
set obj.label = dataProperty.label
set obj.name = dataProperty.name
set obj.override = dataProperty.override
set obj.rangeLower = dataProperty.rangeLower
set obj.rangeUpper = dataProperty.rangeUpper
set obj.showAs = dataProperty.showAs
set obj.style = dataProperty.style
set obj.subtype = dataProperty.subtype
set obj.summary = dataProperty.summary
set obj.summaryValue = dataProperty.summaryValue
set obj.targetValue = dataProperty.targetValue
set obj.thresholdLower = dataProperty.thresholdLower
set obj.thresholdUpper = dataProperty.thresholdUpper
set obj.valueColumn = dataProperty.valueColumn
set obj.width = dataProperty.width
quit obj
]]></Implementation>
</Method>
<Method name="ProcesscomboChart">
<ClassMethod>1</ClassMethod>
<FormalSpec>Widget:%DeepSee.Dashboard.Widget,Obj:%ZEN.proxyObject</FormalSpec>
<Implementation><![CDATA[
set Obj.seriesTypes = $$$NewDynDTList
for i=1:1:Widget.dataSeries.Count()
{
$$$Insert(Obj.seriesTypes,Widget.dataSeries.GetAt(i).type)
}
]]></Implementation>
</Method>
<Method name="ProcesstreeMapChart">
<ClassMethod>1</ClassMethod>
<FormalSpec>Widget:%DeepSee.Dashboard.Widget,Obj:%ZEN.proxyObject</FormalSpec>
<Implementation><![CDATA[ do ..ProcesscomboChart(Widget, Obj)
]]></Implementation>
</Method>
<Method name="ProcesstextMeter">
<ClassMethod>1</ClassMethod>
<FormalSpec>Widget:%DeepSee.Dashboard.Widget,Obj:%ZEN.proxyObject</FormalSpec>
<Implementation><![CDATA[
set Obj.dataProperties = $$$NewDynDTList
for i=1:1:Widget.dataProperties.Count()
{
set dataProperty = $$$NewDynObj
do Widget.dataProperties.GetAt(i).%CopyTo(dataProperty)
$$$Insert(Obj.dataProperties,dataProperty)
}
]]></Implementation>
</Method>
<Method name="WidgetControlToProxyObject">
<Description>
Converts %DeepSee.Dashboard.Control object into %ZEN.proxyObject, handles run-time DeepSee variables.</Description>
<Internal>1</Internal>
<ClassMethod>1</ClassMethod>
<FormalSpec>Widget:%DeepSee.Dashboard.Widget,Number:%Integer,CubeName:%String</FormalSpec>
<ReturnType>%ZEN.proxyObject</ReturnType>
<Implementation><![CDATA[
set obj = $$$NewDynObj
set st = Widget.controls.GetAt(Number).%CopyTo(obj) // copy widget control properties to proxyObj
set obj.label = ##class(%DeepSee.UserPortal.Utils).%ResolveText(obj.label)
set obj.source = Widget.name
set:(obj.target="") obj.target = Widget.name
if ($e(obj.value)="@") {
set name = $e(obj.value,2,*)
set value = ##class(%DeepSee.UserPortal.Utils).%GetUserSetting(name,.st)
if $e(value,1,2)="&[" {
set obj.value = value
} else {
set obj.value = "&[" _ value _ "]"
}
}
set:((obj.action="applyFilter") || (obj.action="setFilter")) obj.values = ..GetMembersForFilter(CubeName,obj.targetProperty)
return obj
]]></Implementation>
</Method>
<Method name="GetMdx">
<Description><![CDATA[
Returns MDX string used to create pivot.<br>
<b>pPivotName</b> - fullname of pivot. Eg: "KPIs & Plugins/HoleFoods.pivot". Case insensitive.<br>
<b>pStatus</b> - Status of query execution.<br>]]></Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>pPivotName:%String,*MDX,*BaseMDX</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
#dim tPivot As %DeepSee.Dashboard.Pivot
#dim tPivotTable As %DeepSee.Component.pivotTable
set MDX = ""
set BaseMDX = ""
set tPivot = ##class(%DeepSee.UserLibrary.Utils).%OpenFolderItem(pPivotName,.pStatus)
return:'$IsObject(tPivot) $$$OK
return:$$$ISERR(pStatus) pStatus
set tPivotTable = ##class(%DeepSee.Component.pivotTable).%New()
set pStatus = tPivot.%CopyToComponent(tPivotTable)
return:$$$ISERR(pStatus) pStatus
set rs = tPivotTable.%CreateResultSet(.pStatus,.tParms,.tFilterInfo,.tAdvancedFilters,.BaseMDX) // returns tQueryText - mdx without filters
return:$$$ISERR(pStatus) pStatus
set pStatus = tPivotTable.%GetFilterInfo(.tFilterInfo,.tAdvancedFilters)
//return:$$$ISERR(pStatus) pStatus
if (($d(tFilterInfo)=0) &&($d(tAdvancedFilters)=0)) {
set MDX = BaseMDX // no filters, so we're good
} else {
set rs = tPivotTable.%CreateResultSet(.pStatus,.tParms,.tFilterInfo,.tAdvancedFilters,.MDX) // returns tQueryText - mdx with filters
return:$$$ISERR(pStatus) pStatus
}
// Remove \n
set MDX = $TR(MDX,$C(10),"")
set BaseMDX = $TR(BaseMDX,$C(10),"")
return pStatus
]]></Implementation>
</Method>
<Method name="GetMembersForFilter">
<Description><![CDATA[
Return list of possible filter member values for a given dashboard data source and filter.
Returns list of %ZEN.proxyObject:<br/>]]></Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>DataSource:%String,Filter:%String</FormalSpec>
<ReturnType>%ListOfObjects</ReturnType>
<Implementation><![CDATA[
set st = ##class(%DeepSee.Dashboard.Utils).%GetMembersForFilter(DataSource,Filter,.tMembers,.tDefaultFilterValue,,.tRelatedFilters,0,,.tValueList)
set members = $$$NewDynObjList
set key = $order(tMembers(""))
while (key '= "") {
set member = $$$NewDynObj
set member.name = $lg(tMembers(key),1)
set member.path = $lg(tMembers(key),2)
set member.info = $lg(tMembers(key),3)
set key = $order(tMembers(key))
$$$Insert(members,member)
}
return members
]]></Implementation>
</Method>
<Method name="GetDashboardDisplayInfo">
<Description>
Converts %DeepSee.Dashboard.Definition display information into %ZEN.proxyObject.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Dashboard:%DeepSee.Dashboard.Definition</FormalSpec>
<ReturnType>%ZEN.proxyObject</ReturnType>
<Implementation><![CDATA[
set DisplayInfo = $$$NewDynObj
set DisplayInfo.snapToGrid = Dashboard.snapTo // Dashboard is in "snap to grid" mode.
set DisplayInfo.gridMode = Dashboard.snapGrid // Dashboard uses the new snapGrid layout mode.
set DisplayInfo.gridRows = Dashboard.gridRows
set DisplayInfo.gridCols = Dashboard.gridCols
return DisplayInfo
]]></Implementation>
</Method>
<Method name="GetWidgetDisplayInfo">
<Description>
Converts %DeepSee.Dashboard.Widget display information into %ZEN.proxyObject.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Widget:%DeepSee.Dashboard.Widget</FormalSpec>
<ReturnType>%ZEN.proxyObject</ReturnType>
<Implementation><![CDATA[
set DisplayInfo = $$$NewDynObj
set DisplayInfo.top = Widget.top
set DisplayInfo.left = Widget.left
set DisplayInfo.width = Widget.width
set DisplayInfo.height = Widget.height
set DisplayInfo.topCol = Widget.homeColL
set DisplayInfo.leftRow = Widget.homeRowL
set DisplayInfo.colWidth = Widget.colSpanL
set DisplayInfo.rowHeight = Widget.rowSpanL
return DisplayInfo
]]></Implementation>
</Method>
<Method name="GetDashboardInfo">
<Description>
Converts %DeepSee.Dashboard.Definition display information into %ZEN.proxyObject.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Dashboard:%DeepSee.Dashboard.Definition</FormalSpec>
<ReturnType>%ZEN.proxyObject</ReturnType>
<Implementation><![CDATA[
set Info = $$$NewDynObj
set Info.title = ##class(%DeepSee.UserPortal.Utils).%ResolveText(Dashboard.title)
return Info
]]></Implementation>
</Method>
<Method name="GetWidgetCube">
<Description>
Returns name of widget's pivot source cube.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Dashboard:%DeepSee.Dashboard.Definition,WidgetNumber:%Integer</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
set datasource = ..DetermineWidgetDataSource(Dashboard, WidgetNumber)
if ##class(%DeepSee.UserLibrary.Utils).%FolderItemExists(datasource,.id) {
set cube = ##class(%DeepSee.Dashboard.Pivot).cubeNameGetStored(id)
} else {
// KPIs and Worksheets
set cube = ""
}
return cube
]]></Implementation>
</Method>
<Storage name="Default">
<Type>%Storage.Persistent</Type>
</Storage>
<Method name="DetermineWidgetDataSource">
<Description>
Return datasource if one exists, if it's a linked widget then follow the link and get that datasource.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Dashboard:%DeepSee.Dashboard.Definition,WidgetNumber:%Integer</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
set datasource = Dashboard.widgets.GetAt(WidgetNumber).dataSource
return:datasource'="" datasource
set datalink = Dashboard.widgets.GetAt(WidgetNumber).dataLink
return:datalink="" ""
set WidgetNumber = ..GetWidgetNumberByName(Dashboard, datalink)
return ..DetermineWidgetDataSource(Dashboard, WidgetNumber)
]]></Implementation>
</Method>
<Method name="GetWidgetNumberByName">
<Description>
Determines position of a widget in dashboard's widget list. </Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Dashboard:%DeepSee.Dashboard.Definition,WidgetName:%String</FormalSpec>
<ReturnType>%Integer</ReturnType>
<Implementation><![CDATA[
for i=1:1:Dashboard.widgets.Count() {
return:(Dashboard.widgets.GetAt(i).name = WidgetName) i
}
return ""
]]></Implementation>
</Method>
<Method name="PortletSettingsToArray">
<Description><![CDATA[
On return, <var>pInfo</var> can contain a list of settings in the form:<br/>
pInfo(n) = $LB(name,value,type,caption,title)<br/>
<var>name</var> is the logical name of the setting.<br/>
<var>value</var> is the default value of the setting.<br/>
<var>type</var> indicates the type of the setting. This determines the control
displayed to get the value of the setting. If omitted the type is assumed to be a string.
The type can be: "%Integer", "%Boolean", or "ENUM^caption1:value1,caption2:value2".<br/>
<var>caption</var> is the localized caption of the setting.<br/>
<var>title</var> is an optional tooltip displayed for the setting.<br/>
Custom portlet settings can be controlled using the SETTINGS=PORTLET parameter in the
dashboard URL
set list = ##class(MDX2JSON.Dashboard).KPISettongsToArray("DeepSee.Model.PortletDemo.ClockPortlet")]]></Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>Class:%Dictionary.CacheClassname</FormalSpec>
<ReturnType>%ListOfObjects</ReturnType>
<Implementation><![CDATA[
do $classmethod(Class, "%OnGetPortletSettings", .info)
set list = $$$NewDynObjList
set key = $o(info(""))
while key'="" {
set settingInfo = info(key)
set setting = $$$NewDynObj
set setting.name = $lg(settingInfo, 1)
set setting.value = $lg(settingInfo, 2)
set setting.type = $lg(settingInfo, 3)
set setting.caption = $lg(settingInfo, 4)
set setting.title = $lg(settingInfo, 5)
$$$Insert(list, setting)
set key = $o(info(key))
}
return list
]]></Implementation>
</Method>
</Class>
</Export>