-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from psteiwer/dev
Dev
- Loading branch information
Showing
4 changed files
with
65 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Class PivotSubscriptions.UI.Template Extends %DeepSee.UI.standardPage | ||
{ | ||
|
||
Parameter DOMAIN = "PivotSubscriptions"; | ||
|
||
/// Get information to display in the ribbon bar. | ||
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 | ||
{ | ||
Set pDisplay = 1 | ||
Set pSearchBox = 0 | ||
Set pRibbonTitle = $$$Text(..#PAGENAME) | ||
|
||
Set pCommands($I(pCommands)) = $LB("subscriptionManager",$$$Text("Subscription Manager"),$$$Text("Manage Pivot Subscriptions"),"zenPage.navigate('subscriptionManager');") | ||
Set pCommands($I(pCommands)) = $LB("pivotList",$$$Text("Pivot List"),$$$Text("View All Pivot Tables"),"zenPage.navigate('pivotList');") | ||
|
||
Quit $$$OK | ||
} | ||
|
||
ClientMethod navigate(pageName) [ Language = javascript ] | ||
{ | ||
var location="" | ||
if (pageName=='subscriptionManager') { | ||
location="./PivotSubscriptions.UI.SubscriptionManager.zen" | ||
} else if (pageName=='pivotList') { | ||
location="./PivotSubscriptions.UI.PivotList.zen" | ||
} else { | ||
// Invalid page name | ||
} | ||
|
||
if (location!="") { | ||
window.location.href=location; | ||
} | ||
} | ||
|
||
} |