Jump to content

Prompting on a data table via IronPython


Priyank Dwivedi
Go to solution Solved by Priyank Dwivedi,

Recommended Posts

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

  • Solution

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...