Priyank Dwivedi Posted March 6, 2023 Share Posted March 6, 2023 Hi, I have a connection to a SQL Server table via Connect To->MS SQL Server-> Added a table and defined 'prompting' on a couple of columns.The prompt window shows up when I launch the tool and it works fine as intended.Is there a way to have a button inside the tool to prompt this dialog so that the user could modify the selections and reload the data table ?Thanks!Priyank Link to comment Share on other sites More sharing options...
Solution Priyank Dwivedi Posted March 6, 2023 Author Solution Share Posted March 6, 2023 We figured it out. Here's the IronPython script where table is the data table you would like to refresh. from Spotfire.Dxp.Framework.ApplicationModel import *def Refresh(): table.Refresh()ps = Application.GetService[ProgressService]()ps.ExecuteWithProgress("refresh title", "refresh description", Refresh) Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted March 7, 2023 Share Posted March 7, 2023 Thank you for sharing your solution with the community, Priyank! 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