2022.2

Table Of Contents
l
Astext.Thisinsertstheresultsas-is,meaningHTMLtagsandelementsaredisplayedas
textintheoutput.Inthisscenario,"<br>"showsupinthetextanddoesnotinsertaline
break.
l
AsthevalueofanattributeofanHTMLelement.Theselectorofthescriptshouldbean
HTMLelement.WhichattributesareavailabledependsontheselectedHTMLelement.If
thescript'sselectorisanimage(<img>element)forexample,andtheattributeissrc,the
scriptwillmodifytheimage'ssource.Thescript'sresultsshouldbeavalidvalueforthe
chosenattribute.
l
Whenchecked,theoptionConvert fields to JSON stringwritestheresultsfromthe
scriptintoanattributeortextasaJSONstring.ThisisusefulforWebcontextswherea
front-endscriptcanreadthisvalueeasily.
l
OK:Clicktosaveanychangesmadetothescript,applythechangesinthetemplate,andclose
thedialog.
l
Cancel:Clicktoclosethedialogwithoutsavingchanges.
l
Expand:Clicktoconvertthescriptgeneratortoaregularscript.Notethatthisactionisnotrevers-
ibleoncetheregularscripthasbeensaved.Theexpandedscriptwilluseeitherdoubleorsingle
quotationmarks,dependingonthePreferences(Window > Preferences > Scripting;see
"Scriptingpreferences"onpage803).
l
Apply:Saveschangesmadetothescriptandappliesthechangesinthetemplatewithoutclos-
ingthedialog.
Expanded Script window
Whenexpanded,theScriptwindowreplacesallpartsofthewizardbelowtheSelectorbyaboxinwhich
thescriptcanbetyped.See"Writingyourownscripts"onpage808.
Foranoverviewofkeyboardshurtcutsthatcanbeusedinthisscripteditor,see"Keyboardshortcuts"
onpage953.
Chart Script dialog
TheChartScriptdialogspecifieswhichvariabledatawillbedisplayedinachartandshowsapreview
ofboththechart(ontherighthandside)andthedata(atthebottom).Thisdialogisoneofthepartsof
theInsertChartwizards.Itcanbereopenedbydouble-clickingtherelevantscriptintheScriptspane.
Formoreinformationaboutcharts,see:"Businessgraphics"onpage626.
ThesearetheoptionsintheChartScriptdialog:
Page 927