How to set DataSource.IsLinkable property

Last post Thu, Apr 1 2010 2:41 PM by samerqutob. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • Thu, Apr 1 2010 12:27 PM

    How to set DataSource.IsLinkable property

     Hi,

    I read a data file into Spotfire data table using

    TextFileDataSource(String fileName, TextDataReaderSettings settings) API

    Once the data is loaded, I delete the source data file .. so I need to make sure that the data loaded in Spotfire is Embedded and not linked. I tried setting IsLinkable property of the data source to false, but unfortunatly it is read-only.

    Question: How can I force the data source (or its settings) to embed the data in the document?

     

    Thanks

    Samer.
  • Thu, Apr 1 2010 12:45 PM In reply to

    Re: How to set DataSource.IsLinkable property

    IsLinkable is set by the author of the DataSource code, to indicate whether a data source type as a whole can be linked.

    You're looking for the DataTableSaveSettings class.  Somethign like the following code snippet should suffice:

                    DataManager manager = table.Context.GetAncestor<DataManager>();
                    DataTableSaveSettings settings = null;

                    if (manager.SaveSettings.TryGetDataTableSettings(table.Id, out settings))
                    {
                        settings.UseLinkedData = false;
                    }
                    else
                    {
                        settings = new DataTableSaveSettings(table, false, true);
                        manager.SaveSettings.DataTableSettings.Add(settings);
                    }

  • Thu, Apr 1 2010 2:41 PM In reply to

    Re: How to set DataSource.IsLinkable property

     Thanks a lot .. It works.

    Samer.
Page 1 of 1 (3 items)

Spotfire's interactive information visualization and analytic solutions give users a remarkable experience for quickly and easily querying data and reporting results for superior business intelligence. From portfolio management and customer retention programs to key processes such as CRM, marketing, research, bioinformatics, yield and asset management and design for manufacturing, enterprises around the world rely on Spotfire's business analytics software to improve operational performance.

©Copyright 2000-2011 TIBCO Software Inc | Privacy Policy | Terms of Use I Blog I Contact Us I Content Center