2022.2

Table Of Contents
Field Type Description
"context"on
page1299
Context Thecontextrenderedbythismergerun.Ifforonerecord,differentcontextsneedtobeoutput(forexample,
whenthePrintcontextisattachedtoanemail)arecordismergedmultipletimes:oncepercontext.Per
mergerun,merge.contextshowswithwhichcontexttherecordismerged.
pagination
"Pagination"
below
ContainsthetotalpagecountandsheetcountofallsectionsinthePrintcontextafterpagination.
"section"on
page1305
Section InStandardScripts,thisobjectdefinesthesectionthatisbeingmerged.
Note!InControlScripts,merge.sectionisonlyavailablewhentheoutputchannelisWEB.Tomake
surethatitisdefined,usethefollowingstatement:if (merge.channel == Channel.WEB &&
merge.context.type == ContextType.WEB) { ... }.
ToretrieveanysectioninaControlScript,use:merge.tem-
plate.contexts.ContextType.Section['Section name'];(forexample:merge.tem-
plate.contexts.PRINT.sections["Section EN"]).
InPostPaginationScripts,onlyPrintsectionsareavailable.
"template"on
page1292
Template Thisobjectcontainsthetemplateandallofitscontexts.Itcanbeusedtofindoutwhichcontextsareavailable
inthetemplate,usingmerge.template.contexts(see"context"onpage1299)andtomanipulatethe
sectionsinthosecontexts(see"section"onpage1305).
Pagination
ThePaginationobjectthatisaccessedviathemergeobject(see"merge"onthepreviouspage)con-
tainsthetotalpagecountandsheetcountoftheentire Print contextafterpagination.Theseprop-
ertiesareread-onlyandareonlyavailableinPostPaginationScripts(see"PostPaginationScripts"on
page850).
Forinformationaboutwhereanelementislocatedandthecountsofpagesandsheetsinapage
bundle-agroupofsectionsinwhichthepagenumberingcontinues-use"info()"onpage1304.
Forthetotalpagecount,sheetcountandstart/endpagenumbersofasingle section,usethesec-
tionobject's"Pagination"onthepreviouspage(seealso:"section"onpage1305).
Field Type Description
pageCount
Number
The total number of pages in all Print sections together.
sheetCount
Number ThetotalnumberofsheetsinallPrintsectionstogether.
Generating output
Whenmergedwitharecordset,thetemplatesmadeintheDesignercangeneratethreetypesofout-
put:Print,EmailandWeb.
Page 1314