from System import Uri
#need to go through all pannels to find out which one is the cp
for aPanel in Application.Document.ActivePageReference.Panels:
if type(aPanel)==CollaborationPanel:
aPanel.Visible=True #open collaboration panel
aPanel.Url=Uri("http://spotfired.blogspot.com/?m=1")
To update all collaboration panels from all pages
#updates all collaboration panels from all pages
from Spotfire.Dxp.Application.Collaboration import CollaborationPanel
from System import Uri
for aPage in Document.Pages:
for aPanel in aPage.Panels:
if type(aPanel)==CollaborationPanel:
aPanel.Visible=True #open collaboration panel
aPanel.Url=Uri("http://spotfired.blogspot.com/?m=1")
4 comments:
Can we hide the collaboration panel ?
Likith,
You can hide a panel by trning the Visible property to false:
aPanel.Visible = False
Hi, Can we parameterise the URL for example by adding %CURRENT_USER% as part of the query string?
if using webplayer, check out this post . Then you can use the userid from doc prop:
aPanel.Url=Uri("http://spotfired.blogspot.com/?m=1"+userid)
Post a Comment