2022.2

Table Of Contents
l
Suffix:Statictexttouseafterthesetfield.ForDynamicImageScripts,thedefaultsuffixis
.jpgandreferstothefileextension.
l
[+]:AddsanewlinetotheWizardResults.Notethatbydefaultthereisnolinereturnbetween
fieldsinthelist.Adding<br>intheSuffixorPrefixfieldcanestablishalinereturn.
l
[-]:RemovesthecurrentlyselectedlineintheWizardResultslist.
l
Arrow Up:Movesthecurrentlyselectedlineuponeposition.
l
Arrow Down:Movesthecurrentlyselectedlinedownoneposition.
l
Refresh Types:Updatesfieldtypestomatchthetypesintheactivedatamodel.
l
Options(onlyavailableintheTextScriptwizardandtheDynamicImagewizard):specifies
whereandhowthescriptinsertsitsresults:
l
AsHTML.HTMLelementsintheresultsareprocessedanddisplayedasHTMLelements.
Forinstance,<b>this is bold</b>willbedisplayedasthis is bold.Thisisthe
defaultsetting.
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"onpage366).
l
Apply:Saveschangesmadetothescriptandappliesthechangesinthetemplatewithoutclos-
ingthedialog.
Page 479