Jump to content
  • How to write to the Source Information tab from a Custom Data Source using Spotfire® C# API


    When developing a Custom Data Source there might be a need to write certain information to the "Source Information" tab in the, Data Table Properties >> Source Inforamtion tab. This could be achieved by overridding the GenerateDataHistoryCore method in the DataSource class and add the details to the builder.

    Introduction

    When developing a Custom Data Source there might be a need to write certain information to the "Source Information" tab in the, Data Table Properties >> Source Information tab. This could be achieved by overriding the GenerateDataHistoryCore method in the DataSource class and add the details to the builder.

    Code Sample

    public class SampeDataSource : CustomDataSource
    {
        protected override void GenerateDataHistoryCore(DataHistoryBuilder builder)
    
        {
            // Add the Year to the Source Information tab.
    
            DateTime now = DateTime.Now;
            builder.AddDetail("Year :" + now.ToString("yyyy"));
        }
    }
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...