Skip to content

Commit 3beb830

Browse files
committed
Localization of dashboard title
1 parent 92db48d commit 3beb830

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

MDX2JSON/Dashboard.cls.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,24 @@ Folder, from which we get Dashboards.</Description>
1818
Get SQL for folder, from which we get Dashboards. </Description>
1919
<ClassMethod>1</ClassMethod>
2020
<ReturnType>%String</ReturnType>
21-
<Implementation><![CDATA[ return "SELECT title, fullName As path FROM %DeepSee_Dashboard.Definition WHERE folderName %STARTSWITH '" _..#folderName _"'"
21+
<Implementation><![CDATA[ return "SELECT MDX2JSON.Dashboard_ResolveText(title) As title, fullName As path FROM %DeepSee_Dashboard.Definition WHERE folderName %STARTSWITH '" _..#folderName _"'"
22+
]]></Implementation>
23+
</Method>
24+
25+
<Method name="ResolveText">
26+
<Description><![CDATA[
27+
Resolve a localized text string at run time.
28+
A localized string can take the following forms:<br>
29+
"String" -- not localized.<br>
30+
"$$$String" -- equivalent to $$$Text("String","DeepSeeUser")<br>
31+
"$$$String/Domain" -- equivalent to $$$Text("String","Domain")<br>
32+
Equivalent to ##class(%DeepSee.UserPortal.Utils).%ResolveText(), but in SQL context<br>
33+
Usage: Select MDX2JSON.Dashboard_ResolveText(title) FROM %DeepSee_Dashboard.Definition]]></Description>
34+
<ClassMethod>1</ClassMethod>
35+
<FormalSpec>Text:%String</FormalSpec>
36+
<ReturnType>%String</ReturnType>
37+
<SqlProc>1</SqlProc>
38+
<Implementation><![CDATA[ return ##class(%DeepSee.UserPortal.Utils).%ResolveText(Text)
2239
]]></Implementation>
2340
</Method>
2441

0 commit comments

Comments
 (0)