Ronald Brill Posted September 21, 2022 Share Posted September 21, 2022 We like to simplify the connection to our OData sources for our users. For this i like to present a different dialog to let the user choose the souce in a more friendly way. Behind the scenes i will than figure out the correct odata url from the user input and establish the connection. Link to comment Share on other sites More sharing options...
Jose Leviaguirre Posted September 22, 2022 Share Posted September 22, 2022 I would start exploring the Spotfire SDK available from edelivery.tibco.com Link to comment Share on other sites More sharing options...
Ronald Brill Posted September 23, 2022 Author Share Posted September 23, 2022 Thanks Jose for you answer - of course I did that alrady before asking here. But i found no solution or even no hint about how to set up a datasource from c#. Can you please add some more hints where i have to search in the sdk. Link to comment Share on other sites More sharing options...
Jose Leviaguirre Posted September 27, 2022 Share Posted September 27, 2022 Hello Ronald, There are many examples on the community. In case you missed them, I would start by checking out the article on Extending TIBCO Spotfire. There are many ways. Here the author has links and examples depending on what is the best way to extend. If you think C# is the best way to go, then check out the TIBCO Spotfire C# Extensions overview post. There Is an entry on how to create a custom tool in TIBCO Spotfire and many C# Examples here, where one of the examples is about creating a custom data source in TIBCO SpotfireHope this helps, Jose Link to comment Share on other sites More sharing options...
Ronald Brill Posted September 27, 2022 Author Share Posted September 27, 2022 Hi Jose,maybe there is a small missunderstanding here - I will try to make my problem a bit more clear.I know how to write c# code and I also know how to write Spotfire extensionsI have already written a Spotfire extension that implements a Custom DataSouce and this extension worksBut if you write your own Datasource you have to write the whole request sending, response receiving and response transformation your own (as far as i know)What I have is a bunch of OData Services.Our users like to have a dialog that show's some kind of a seletion list of the various available services and nothing more (not the standart url/authentication dialog from the spotfire odata source connect dialog) to consume data from one of these services.And they do not like to have a button in there analysis that starts this - the like to have a new entry in the 'connet to' list that simply opens the selection dialog.My idea was to write a DataSource (to be part of the 'connect to' list) and implement a dialog that presents the list of available services. (This works so far). But i do not like to write the whole OData processing again - i like to use the stuff already available from Spotfire. How can i reuse this stuff? Link to comment Share on other sites More sharing options...
Jose Leviaguirre Posted September 27, 2022 Share Posted September 27, 2022 Hello RonaldI checked and there is no OData processing available in the Spotfire API, but I am sure there there are some third party C# library that can be used. Maybe a work around is to use ODBC wrapper for OData Link to comment Share on other sites More sharing options...
Ronald Brill Posted September 27, 2022 Author Share Posted September 27, 2022 Hi Jose,I'm already know that there is no OData support in the Spotfire APII'm aware of the usual OData support libraries and I'm able to write a Custom DataSource using these libsHere comes another try to say what I'm looking for....Scenario 1 (this is not what i like to have)the user starts spotfirethe use click + and 'connect to' and chooses ODatanow the user has to type in the URL of the OData source (and maybe the credentials)the user has to choose the tables and columnsand finally the user ends up with a analysis file that can be saved locallythe user can reopen the file later and refresh the data from the datasourceScenario 2 - this is what we like to havethe user starts spotfirethe users clicks on something we have provided (from the our module)a dialog opens up with a list of OData servicesthe user selects one service from the list and clicks okthe user has to choose the tables and columnsand finally the user ends up with an analysis file that can be saved locallythe user can reopen the file later and refresh the data from the (OData) datasourceThe bold steps in scenario 2 should be identical to scenario 1 - means, the user should end up with an analysis file that is NOT different from the one from scenario 1.Or the other way around - i can open the analysis file from scenario 2 also with a Spotfire installation without our custom plugin (because the analysis uses a plain Spotfire ODataSource connetion).Hope that makes my problem a bit more clear.If this is only possible using some IronPhyton or R script this might also help. Link to comment Share on other sites More sharing options...
Neil Kanungo 2 Posted September 28, 2022 Share Posted September 28, 2022 Please email us at dr@spotfire.com so we can find a time to discuss options with you. 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