|
1 | | -Class PivotSubscriptions.UI.Template Extends %DeepSee.UI.standardPage |
2 | | -{ |
3 | | - |
4 | | -Parameter DOMAIN = "PivotSubscriptions"; |
5 | | - |
6 | | -/// Get information to display in the ribbon bar. |
7 | | -Method OnGetRibbonInfo(Output pDisplay As %Boolean, Output pViewIcons As %List, Output pSortOptions As %List, Output pSearchBox As %Boolean, Output pRibbonTitle As %String, Output pCommands As %List) As %Status |
8 | | -{ |
9 | | - Set pDisplay=1 |
10 | | - Set pSearchBox=0 |
11 | | - Set pRibbonTitle=$$$Text(..#PAGENAME) |
12 | | - |
13 | | - Set pCommands($I(pCommands))=$LB("subscriptionManager",$$$Text("Subscription Manager"),$$$Text("Manage Pivot Subscriptions"),"zenPage.navigate('subscriptionManager');") |
14 | | - Set pCommands($I(pCommands))=$LB("pivotList",$$$Text("Pivot List"),$$$Text("View All Pivot Tables"),"zenPage.navigate('pivotList');") |
15 | | - Set pCommands($I(pCommands))=$LB("configurationPage",$$$Text("Configuration Page"),$$$Text("Configure Settings"),"zenPage.navigate('configurationPage');") |
16 | | - |
17 | | - Quit $$$OK |
18 | | -} |
19 | | - |
20 | | -ClientMethod navigate(pageName) [ Language = javascript ] |
21 | | -{ |
22 | | - var location="" |
23 | | - if (pageName=='subscriptionManager') { |
24 | | - location="./PivotSubscriptions.UI.SubscriptionManager.zen" |
25 | | - } else if (pageName=='pivotList') { |
26 | | - location="./PivotSubscriptions.UI.PivotList.zen" |
27 | | - } else if (pageName=='configurationPage') { |
28 | | - location="./PivotSubscriptions.UI.ConfigurationPage.zen" |
29 | | - } else { |
30 | | - // Invalid page name |
31 | | - } |
32 | | - |
33 | | - if (location!="") { |
34 | | - window.location.href=location; |
35 | | - } |
36 | | -} |
37 | | - |
38 | | -} |
| 1 | +Class PivotSubscriptions.UI.Template Extends %DeepSee.UI.standardPage |
| 2 | +{ |
| 3 | + |
| 4 | +Parameter DOMAIN = "PivotSubscriptions"; |
| 5 | + |
| 6 | +/// Get information to display in the ribbon bar. |
| 7 | +Method OnGetRibbonInfo(Output pDisplay As %Boolean, Output pViewIcons As %List, Output pSortOptions As %List, Output pSearchBox As %Boolean, Output pRibbonTitle As %String, Output pCommands As %List) As %Status |
| 8 | +{ |
| 9 | + Set pDisplay=1 |
| 10 | + Set pSearchBox=0 |
| 11 | + Set pRibbonTitle=$$$Text(..#PAGENAME) |
| 12 | + |
| 13 | + Set pCommands($I(pCommands))=$LB("subscriptionManager",$$$Text("Subscription Manager"),$$$Text("Manage Pivot Subscriptions"),"zenPage.navigate('subscriptionManager');") |
| 14 | + Set pCommands($I(pCommands))=$LB("pivotList",$$$Text("Pivot List"),$$$Text("View All Pivot Tables"),"zenPage.navigate('pivotList');") |
| 15 | + // Check for additional permissions? |
| 16 | + Set pCommands($I(pCommands))=$LB("configurationPage",$$$Text("Configuration Page"),$$$Text("Configure Settings"),"zenPage.navigate('configurationPage');") |
| 17 | + Set pCommands($I(pCommands))=$LB("eventLogViewer",$$$Text("Event Log Viewer"),$$$Text("Event Log Viewer"),"zenPage.navigate('eventLogViewer');") |
| 18 | + |
| 19 | + Quit $$$OK |
| 20 | +} |
| 21 | + |
| 22 | +ClientMethod navigate(pageName) [ Language = javascript ] |
| 23 | +{ |
| 24 | + var location="" |
| 25 | + if (pageName=='subscriptionManager') { |
| 26 | + location="./PivotSubscriptions.UI.SubscriptionManager.zen" |
| 27 | + } else if (pageName=='pivotList') { |
| 28 | + location="./PivotSubscriptions.UI.PivotList.zen" |
| 29 | + } else if (pageName=='configurationPage') { |
| 30 | + location="./PivotSubscriptions.UI.ConfigurationPage.zen" |
| 31 | + } else if (pageName='eventLogViewer') { |
| 32 | + location="./PivotSubscriptions.UI.EventLogViewer.zen" |
| 33 | + } else { |
| 34 | + // Invalid page name |
| 35 | + } |
| 36 | + |
| 37 | + if (location!="") { |
| 38 | + window.location.href=location; |
| 39 | + } |
| 40 | +} |
| 41 | + |
| 42 | +} |
0 commit comments