tag:blogger.com,1999:blog-1078032318127767231.post941975040992475894..comments2024-03-20T01:42:16.872-05:00Comments on Spotfire Developer: Html in TextAreaJose Leviaguirrehttp://www.blogger.com/profile/12377756211132280060noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1078032318127767231.post-12000635169619419002016-09-22T16:03:36.714-05:002016-09-22T16:03:36.714-05:00Phillip, ta is a script parameter that points to a...Phillip, ta is a script parameter that points to a text area. The script above replaces the entire content of the text area. As jeff said, you can replace portion of it by using a replace function.Jose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-54817092924312118412016-09-22T04:04:17.816-05:002016-09-22T04:04:17.816-05:00copy/pasting exactly the original script (only cha...copy/pasting exactly the original script (only changing the name of my document property) i get the following error:<br /><br />Traceback (most recent call last):<br /> File "Spotfire.Dxp.Application.ScriptSupport", line unknown, in ExecuteForDebugging<br /> File "", line 2, in <br />NameError: name 'ta' is not defined<br /><br />how can this be fixed? thank you so much!philipphttps://www.blogger.com/profile/04843552351134040188noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-23292747450412311322016-01-27T08:50:34.553-06:002016-01-27T08:50:34.553-06:00You could also use a string replace command. Would...You could also use a string replace command. Would be useful for an if statement based on a document property.<br /><br />from Spotfire.Dxp.Application.Visuals import HtmlTextArea<br />vis = ta.As[HtmlTextArea]()<br />str = vis.HtmlContent<br />str = str.replace("Apple","Banana")<br />vis.HtmlContent = strAnonymoushttps://www.blogger.com/profile/02343265573401358515noreply@blogger.com