2022.2

Table Of Contents
Example
ThefollowingControlScriptretrievestwoPrintsections.Then,dependingonavalueinthecurrent
record,itenablesonesectionortheother,sothatonlyoneofthetwosectionsappearsintheoutput.
var printSections = merge.template.contexts.PRINT.sections;
printSections['Section EN'].enabled = false;
printSections['Section FR'].enabled = false;
if(record.fields.Language === 'FR'){
printSections['Section FR'].enabled = true;
} else {
printSections['Section EN'].enabled = true;
}
properties
Thepropertiesobjectinsidethetemplateobject(see"template"onthepreviouspage)contains
alldefaultpropertiesofthetemplatefileaswellasanycustomproperties.
Toviewandcomplementthefileproperties,selectFile > Propertiesonthemenu.See"FileProperties
dialog"onpage883.
Followingarethedefaultproperties.
Field Type Description
application String Applicationversionwhenthedocumentwaslastsaved
author String Originalauthorofthedocument
company String companyname
created Date Dateandtimeonwhichthedocumentwascreated
customProperties List Alistofdefinedcustomproperties
description String Descriptionofthedocument
file String Filenameofthedocument
keywords String Semicolon-separatedlistofkeywords
modified Date Dateandtimeonwhichthedocumentwaslastsaved
Example
Thisscriptstoresadefaultproperty(author)andacustompropertyinvariables.
Page 1293