Jump to content

C# Custom Data Source - How to access marked selection from other table


Gunther Doernen

Recommended Posts

I have implemented a C# Custom Data Source for Spotfire consuming and loading data from a REST API. That works fine!

As an extension of that Custom Data Source I would like to use selected cells from another data table as input parameter (list of identifiers) for that Custom Data Source.

In seems access to a document and data table from that custom data source is not easily possible. I have not found documentation or example code for that case.

What is the best approach to implement that

I have seen CustomTool as an implementation option. Would that be the right implementation strategy, to access the selection and somehow inject the selection into the table dependend on the Custom Data Source and forcing a reload

Link to comment
Share on other sites

  • 3 weeks later...

Technically you would:

 

Create a custom data function, that allows for inputs from an existing data table in spotfire

Instantiate an instance of your custom data source inside your data function, with inputs from your data function

Set the custom datasource's reader object as output to the datafunction 

 

 

 

Hope this helps,

 

Andreas

 

 

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...