2022.2

Table Of Contents
3. Selectthedatatype.Thisimpactsthewaythedatacanbehandledinascript;forexample,ifa
parameter'stypeisNumber,itsvaluecanbeuseddirectlyincalculations,withouthavingto
parseitfirst.
IntheParameterspane,thetypeofaruntimeparametercanberecognizedbyitsicon.
4. Optionally,setadefault value.Adefaultvaluewillonlybeusedinthecasethatthereisno
actualvaluecomingfromtheautomationtool,e.g.oneoftheContentCreationtasksinPlan-
etPressWorkflow,atruntime.Sinceruntimeparameterscannotbeempty,thispreventsan
error.
Atdesign-timeruntimeparametersareundefined,unlessyouaddvaluesmanuallyinorderto
testatemplate.Forinstructions,seebelow.
5. ClickOK.
Toaddmultipleparametersortoset values:
1.
ClicktheSet Valuesbutton( ).ThisopenstheSetValuesdialogwhichallowstoloadJSON
data.
AnypreviouslydefinedruntimeparametersaredisplayedinthedialogasaJSONobject.Para-
meternamesappearaskeys;defaultvaluesappearasvalues.
2. EitherbrowsetothelocationofaJSONfileandselectit,orpaste/write/edittheJSONdirectlyin
theboxbelowtheFilefield.
NotethatJSONarraysarenotsupported.
3. ClickOK.ThekeysoftheJSONobjectappearintheNamecolumn,thevaluesintheValue
column.
4. Fornewparametersanattemptismadetoderivethedatatypefromthevalue,butthisisonly
possibletoalimitedextent.Double-clickanynewparametertosetitsdesireddatatype.
Editing a runtime parameter
Toeditaruntimeparameter,either:
l
Double-clicktheparameter;orright-clickandchooseEdit;orselecttheparameterandclickthe
Editbutton( ),andmodifyitintheEditParameterdialog.
l
ClicktheSet Valuesbutton( )andedittheJSON.Notethatthismethodcannotbeusedto
changethenameofaruntimeparameter.Youcanonlychangethevaluesandaddnewruntime
parametersthisway.
IftheDataModelcontainsaJSONRecordDataList(see"AJSONRecordDataList"onpage893),you
couldedittheruntimeparametersbyaddingoreditingtheparametersobjectusingthe"JSON
sampledatadialog"onpage891.
Page 430