Data Tables and their Description

#create html header
html="<table><tr><th>View Name</th><th>View Description</th></tr>"

#loop document data tables and get their description

for t in Document.Data.Tables:
  html += "<tr><td>" + t.Name +"</td><td>"+ t.Properties.GetProperty("Description")+"</td></tr>\n"

#end html

html += "</table>"

#print result to a text area (textArea is can be a blank text area script parameter)
from Spotfire.Dxp.Application.Visuals import HtmlTextArea
textArea.As[HtmlTextArea]().HtmlContent = htmlReport
Previous
Next Post »