Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories Text Area
Created by Guest
Created on Oct 22, 2022

API Support for Text Area Items

Problem Statements

Currently C# API allows to update HTML Content. However, when it comes to little complex requirements, which involves below; there are no options available to insert programmatically-

  • Filters

  • Document Property

  • Dynamic Items

  • JavaScript

  • Action Controls

Solution Proposed

I understand that HTML markup is not capable of directly including Spotfire Native items. However, approach suggested is to provide a method for TextArea Object to create HTML Content with help of other object. structure can be something like this -

HtmlContainer.Add(HTMLSnippetString)
HtmlContainer.Add(Filter, FilterType)

HtmlContainer.Add(DocumentProperty, PropetyControlType)

dItem=DynamicItemt
dItem.Type = CalculatedValue
dItem.DataTable = Document.ActiveDataTableReference
dItem.ValueExpression ='Sum([Column A])'
HtmlContainer.Add(dItem)

HtmlContainer.Add(JavaScriptAvailebInDocument['Script Name'])

aCtrl=ActionControl
aCtrl.Type = ActionControlType.Button
aCtrl.Text ="Action Button"
aCtrl.Action= ActionButton.Action(ActionIdentifier)
aCtrl.Property(AbctionButtonProperty)
HtmlContainer.Add(aCtrl)

HtmlContainer.Add(HTMLSnippetString)

TextArea.HtmlContent= CreateHtmlContent(HTMLContainer)
  • Attach files