2022.2

Table Of Contents
Object Usage
"record"on
page1199
Thecurrentrecordinthemaindataset.Togetthevalueofafieldintherecord,userecord.fields['fieldname']or
record.fields.fieldname.
"section"on
page1305
MuchoftheControlScriptmagicisperformedbysettingoneofthefieldsofthesectionobject.Viathesectionobjectyoucan
omit,selectandclonesections;addabackgroundtoaPrintsection;addaheadertoanemail;etc.
Asectioncanberetrievedviathecontextthatitbelongsto,usingmerge.template.contexts.ContextType.sections["sec-
tion name"].Forexample:merge.template.contexts.PRINT.sections["Section EN"].
"template"on
page1292
Thetemplateobjectcontainsallcontextsandsections.Itisaccessedthroughthemergeobject:merge.template.
automation
Thisobject(ofthetype:Automation)encapsulatesthepropertiesofthePlanetPressWorkflowprocess
thattriggeredthecurrentoperation.
ThisobjectisonlyavailableinaWebcontext.
TheautomationobjectavailableinDataMapperscriptsisnotofthesametype.Ithasdifferentprop-
erties.
Properties
ThefollowingtableliststhepropertiesoftheAutomationobject.
Property Description
jobInfos ReturnsanobjectcontainingJobInfo1to9valuesfromPlanetPressWorkflow(seeJobInfovariablesintheWorkflowOnline
Help).
Properties Returnsanobjectcontainingadditionalinformation(filename,processnameandtaskID)fromPlanetPressWorkflow.
Accessing automation properties
ToaccessJobInfo1to9(definedinWorkflow;seeJobInfovariablesintheWorkflowOnlineHelp):
automation.jobInfos.JobInfo1;
ToaccessProcessName,OriginalFilenameorTaskIndex(definedinWorkflow):
automation.properties.OriginalFilename;
Page 1272