Shweta Mishra Posted June 15, 2016 Share Posted June 15, 2016 Hi All, Can anyone please suggest howto open a hyperlink from just one click on a graphical table values. Whenever user clicks on any value in a graphical table, a web browser should get opened. Thanks!!! Link to comment Share on other sites More sharing options...
Bruno Souleres Posted June 15, 2016 Share Posted June 15, 2016 Hi, You can do this by enabling the "Perform action on click" in the settings of the column, and using an Action Script. Right click on your graphical table and select "Properties"; In the "Axes" tab, select the column you want, and click "Settings"; In the column settings window, select the "Actions" tab, and check the "Perform action on click" checkbox. Then click on "Settings", and create an IronPython script. Here below is an example of a script that opens the TIBCO website, you can adapt it to your needs : import System System.Diagnostics.Process.Start("http://www.tibco.com"); More info on Action scripts can be found at : https://docs.tibco.com/pub/sfire-analyst/7.6.0/doc/html/WebHelp/WebHelp/... Link to comment Share on other sites More sharing options...
Shweta Mishra Posted June 15, 2016 Author Share Posted June 15, 2016 Thanks for this quick reply! My main focus is to write the ioronpython script. I had tried this. It is not working on webplayer. Actually the requirement is to open a report by clicking on the values from graphical table.Depending on the values from graphical table different tabs will be opened in a new report (That I am handing by generating dynamic values in configuration block). Only chalenge is to open this other report by single click only on the graphical atble. So I am looking for the script to open a hyperlink by single click from webplayer . Link to comment Share on other sites More sharing options...
Manish Patel 2 Posted June 16, 2016 Share Posted June 16, 2016 Note that when you execute an IronPython script on the Web Player, the script is executed on the Web Player server and not the client browser. You will need an HTML form based solution for your script to work on the Web Player.One possible solution is to use an HTML text area. Here are the steps to implement: Add/Insert a new TextArea and name it "HTML" in your page. Update your IronPython script to add the following, to generate a link: from Spotfire.Dxp.Application.Visuals import HtmlTextArea dynamic.As[HtmlTextArea]().HtmlContent = " Link to comment Share on other sites More sharing options...
Shweta Mishra Posted June 17, 2016 Author Share Posted June 17, 2016 Thanks Manish for you reply! I had tried it before. Still user has to click two times here. 1st time: to execute ironpython so that link will be genrated 2nd time: to click on the link. But the requireemnt is just to click once on the values of graphical table to open a hyperlink/differenet report. Link to comment Share on other sites More sharing options...
Grazia Palmisano Posted April 8, 2020 Share Posted April 8, 2020 Hi, have you a solution I have the same issue.... Thank you Link to comment Share on other sites More sharing options...
Grazia Palmisano Posted April 8, 2020 Share Posted April 8, 2020 Hi, have you a solution I have the same issue Thank you so much... Link to comment Share on other sites More sharing options...
achen1 Posted July 19 Share Posted July 19 I am having a similar issue. Is there a solution to this??? Link to comment Share on other sites More sharing options...
David Boot-Olazabal Posted July 22 Share Posted July 22 Hi, You could implement the solution described in this article: https://spotfired.blogspot.com/2015/10/update-doc-property-trigger-ironpython.html. It basically triggers a script upon change of a document property that is leveraged by an expression, marked rows, filtered rows, etc. When you create such a property using this data function method and connect your script to it, it should run once the property changes. And that would rebuild the hyperlink, making it possible to only click once to open the link. Kind regards, David Link to comment Share on other sites More sharing options...
Vanessa Virginia Sucre Gonzalez Posted July 29 Share Posted July 29 Hi @Shweta Mishra @achen1 I've built a basic script that could help you achieve what you want. I'm attaching a dxp below :) Let me know if you have any doubts or questions Open hyperLink.dxp 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