asier b Posted November 19, 2018 Share Posted November 19, 2018 Hi, with Spotfire, does anyone know how to modify the SQL that defines a Custom Query from IronPython Thanks Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted November 20, 2018 Share Posted November 20, 2018 Currently we do not have any API available to access/modify the queries used by a data table.I would suggest you file an enhancement request for that feature in the Ideas portal linked above: http://ideas.tibco.com/ Link to comment Share on other sites More sharing options...
asier b Posted November 20, 2018 Author Share Posted November 20, 2018 Thanks a lot for clarifying Link to comment Share on other sites More sharing options...
Ken Lawrence Posted May 29, 2019 Share Posted May 29, 2019 I've done something similar as follows: from Spotfire.Dxp.Data import * from Spotfire.Dxp.Data.Import import DatabaseDataSource from Spotfire.Dxp.Data.Import import DatabaseDataSourceSettings my_query = "select * from my_table" my_settings = DatabaseDataSourceSettings("System.Data.Odbc", "DSN=myDSN", my_query) my_source = DatabaseDataSource(my_settings) Document.Data.Tables["myDataTable"].ReplaceData(my_source) 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