saminda roshan Posted June 26, 2019 Share Posted June 26, 2019 Dr. Spotfire, I want to navigate to the desired page when I clickon any cell in Cross table. I made a Iron Python script but It doesn't work for me. I uploaded my .dxp file. My code is like this from Spotfire.Dxp.Application import Bookmark from Spotfire.Dxp.Application.AnalyticItems import BookmarkManager from Spotfire.Dxp.Application import BookmarkComponentFlags from Spotfire.Dxp.Application import Page Page1==Document.Properties['PageName'] if Page1="First Year" Document.ActivePageReference=Document.Pages[1] Thanks Natasha Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted June 27, 2019 Share Posted June 27, 2019 Hello Natasha, As you would know, action trigger on clicking is only possible in Graphical Table. If you want to achieve the same in cross table, you will need to set marking on your cross table. When the marking changes, you will need to trigger a data function which will set a value for any document property. This document property value change can then trigger your iron python script of navigating to other page. https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-45663 Regards, Khushboo Link to comment Share on other sites More sharing options...
saminda roshan Posted June 27, 2019 Author Share Posted June 27, 2019 Thanks! I made a trigger in cross table. I added this script tho the 'PageName' Document Property. Then I made a simple function where I click on any cell in Cross Table it will change the Document Property value as 'First Year' It worked. Check my dxp file. Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted June 28, 2019 Share Posted June 28, 2019 If document property value does not change, then it will not trigger Iron Python script, i.e. if your doc property value is "First Year" and you mark any other cell with same value i.e. First Year, your doc property value will not change and hence iron python script will not be triggered You can make use of two document properties. In one document property, you can set the marked value and in other document property set it to current datetime as that will always change. So trigger iron python script on the change of datetime doc property. Link to comment Share on other sites More sharing options...
Giuseppe Verardi Posted October 2, 2019 Share Posted October 2, 2019 Hello everyone, I used dxp from Natasha, but I don't understand because doesnt' work, it looks like IP script doesn't trigger when document property change. I use 7.11 version, is it possible there's a problem with version. I upload the dxp when I did the cross table on tab 2 to go tab 3. Link to comment Share on other sites More sharing options...
Giuseppe Verardi Posted October 3, 2019 Share Posted October 3, 2019 I solved the problem, simply it need restart Tibco Spotfire :-) Link to comment Share on other sites More sharing options...
IBRAHIM KAYA Posted June 20, 2023 Share Posted June 20, 2023 where is your dxp file Saminda? Link to comment Share on other sites More sharing options...
IBRAHIM KAYA Posted June 20, 2023 Share Posted June 20, 2023 can someone please upload the working version of the dxp file? Link to comment Share on other sites More sharing options...
IBRAHIM KAYA Posted June 20, 2023 Share Posted June 20, 2023 Giuseppe, can you upload the dxp file please? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now