Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Collaboration Pannel

from Spotfire.Dxp.Application.Collaboration import CollaborationPanel
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:

Likith said...

Can we hide the collaboration panel ?

Jose Leviaguirre said...

Likith,

You can hide a panel by trning the Visible property to false:

aPanel.Visible = False

Unknown said...

Hi, Can we parameterise the URL for example by adding %CURRENT_USER% as part of the query string?

Jose Leviaguirre said...

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)