Skip to Main Content
Spotfire Ideas Portal
Status Unlikely to implement
Product Spotfire
Categories API
Created by Guest
Created on Jun 28, 2021

pass resulting DataTable back to (SDK) CustomDataSource for final property manipulation

our custom data source has some additional properties that could readily be applied to the resulting data table - such as primary key, tweaks to data types (numbers of decimal places, etc), and the like. this would enable our custom data source to be more bullet proof to the end users who may not know this kind of detail.

An overridable empty implementation of hypothedical CustomDataSource method "UpdateDataTableThatWasJustContructedFromThisDataSource(DataTable dataTable)" would be FANTASTIC for us!

Let me know what questions you have.

  • Attach files
  • Guest
    Reply
    |
    Sep 14, 2021

    update: i noted in a prior comment that "Custom tools" were not available in the WebPlayer. This was not an accurate statement. ("Custom panels are not creatable in the WebPlayer would have been the accurate statement that I was confused with.") Sorry for the error.

  • Guest
    Reply
    |
    Jul 8, 2021

    a couple of notes on this workaround of adding an option to the Tools menu:

    1) We cannot create a document without choosing a data source - so this workaround requires us to workaround that limitation by creating a temporary disposable data source. Obviously not ideal.

    2) Custom tools are not available in the WebPlayer. Or at least that's what I was told after many failed attempts at getting them to show up. Again, not ideal since that means our workaround will only support the thick client.

    Thank you for your responses. They are helpful.


  • Admin
    Magnus Rylander
    Reply
    |
    Jul 2, 2021

    Yes, that's what I meant.

  • Guest
    Reply
    |
    Jun 29, 2021

    i don't understand. does you mean have an option in the Tools menu and have it add the dataSource, dataTable, and set up the dataTable properties?

  • Admin
    Magnus Rylander
    Reply
    |
    Jun 29, 2021

    Since data sources can be used for add rows, in combination with other data sources and data functions, our general recommendation for this kind of scenario is to implement a custom tool that uses the custom data source for the data loading part but takes care of the rest.