Brian Deadwyler Posted April 12, 2013 Share Posted April 12, 2013 All, I have a Graphical table which displays some cells which I would like to click and have them take me to a specific web page. I got his working two different ways in the Enterprise Client but can not get it to run in the Web Client. Here is the basical IronPython code I can run in the Fat Cleint but not in the web client: from System import Diagnostics from System.Diagnostics import Process Process.Start("www.google.com") I can also get this to work, but only in the fat client: import clr clr.AddReference("System.Windows.Forms") from System.Windows.Forms import WebBrowser wb = WebBrowser() wb.Navigate("www.google.com", True) It seems like it would it would be simple to just open a URL in the default browser. Any help on this is appreciated. Thanks, Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted April 12, 2013 Share Posted April 12, 2013 i have tried this script , i got a text area with Launch Help button, But when i click this button, nothing is happening. (window.open is not working). Please advice. Thanks. Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted April 12, 2013 Share Posted April 12, 2013 Oh i forgot to say that the script will only work once published into the web player. Opening files in the enterprise client was a different script. Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted April 12, 2013 Share Posted April 12, 2013 Thanks , its working in Web player. What is the code to work on Spotfire Client. Please share. Thanks. Link to comment Share on other sites More sharing options...
Brian Deadwyler Posted October 23, 2015 Author Share Posted October 23, 2015 I should also mention that i have tried: webbrowser.open("www.google.com") see: http://ironpython-test.readthedocs.org/en/latest/library/webbrowser.html But apparently webbrowser is not recognized. Any idea where it can be imported from Link to comment Share on other sites More sharing options...
Max Adelman Posted October 23, 2015 Share Posted October 23, 2015 This script was used to make a button to pop open a webpage. I spoke with support and it was in a tip of the week from Kevin Hanegan originally but the script did not work without the breaks in it. You might be able to hack out peices from it. from Spotfire.Dxp.Application.Visuals import HtmlTextArea from Spotfire.Dxp.Application.Visuals import VisualTypeIdentifiers from System.Text import StringBuilder from Spotfire.Dxp.Application.Visuals import HtmlTextArea from Spotfire.Dxp.Application.Visuals import VisualTypeIdentifiers from System.Text import StringBuilder sb = StringBuilder() sb.AppendLine("") sb.AppendLine("") sb.AppendLine("") sb.AppendLine("") textArea = Document.ActivePageReference.Visuals.AddNew[HtmlTextArea]() textArea.AutoConfigure() textArea.HtmlContent = sb.ToString() Link to comment Share on other sites More sharing options...
Brian Deadwyler Posted October 23, 2015 Author Share Posted October 23, 2015 This is not exactly what I am looking for. This does not launch a URL in a default browser. It creates a button in a text area that will have the action of going to a web page. I would like to have a script that performs the action of opening a URL. Surely this can be done and is simple. Link to comment Share on other sites More sharing options...
Brian Deadwyler Posted October 23, 2015 Author Share Posted October 23, 2015 Just an update . . . I opened a support ticket with TIBCO on this. In their first reply they basically gave me what madelman had above. It makes me wonder if TIBCO support just starts browsing forumns for a solution. I replied, as I did here, that that that solution is not a solution for my requirement. Well meaning, but not helpful. I will update here if I can get a solution from them. Link to comment Share on other sites More sharing options...
Varun Ganesh Posted September 29, 2016 Share Posted September 29, 2016 Hello, Could anyone sort this out I am having the same issue. Immediate reponse is much appreciated. TxVarun Link to comment Share on other sites More sharing options...
vnd - Posted August 29, 2018 Share Posted August 29, 2018 Hi, Any update on the above request I too have similar requirement. My requirement is, Click on KPI Tile and the action should perform a new web page. Can someone help Thanks, Nanda Link to comment Share on other sites More sharing options...
Grazia Palmisano Posted April 10, 2020 Share Posted April 10, 2020 Hi, i have the same issue. Someone have a solution 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