Gunther Doernen Posted September 11, 2019 Share Posted September 11, 2019 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 More sharing options...
Magnus Rylander Posted October 2, 2019 Share Posted October 2, 2019 A custom data function allows for loading data from external source and to haveinput parameters from the current document (table, column, properties etc) and configure data-on-demand: https://community.spotfire.com/wiki/create-custom-data-function-tibco-spotfire. Link to comment Share on other sites More sharing options...
Gunther Doernen Posted October 3, 2019 Author Share Posted October 3, 2019 ... Link to comment Share on other sites More sharing options...
Gunther Doernen Posted October 3, 2019 Author Share Posted October 3, 2019 Thanks for your reply! How can I access my custom data source from the data function Link to comment Share on other sites More sharing options...
Andreas Laestadius Posted October 3, 2019 Share Posted October 3, 2019 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 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