2022.2

Table Of Contents
fitsthetemplate’smodel.
ThesevendocumenttypesprovidedarethoseoftenusedinERPenvironments:SalesInvoice,Sales
PackingSlip,SalesConfirmation,PurchaseOrder,ProjectInvoice,CollectionLetter,andaFreeText
invoice.
Thecurrentwizardisnamedafterthestyleituses:“Microperspective”.Otherwizardswithdifferent
stylesmayfollowinfutureversions.
Dynamic Sheet Configuration Settings
Acommonrequirementfordynamicprinttemplatesistheabilitytoswitchbetweensimplexandduplex.
TypicallythisissolvedbyduplicatingaPrintSection,enablingDuplexintheSheetConfigurationdialog
andthenswitchingbetweenthesimplexandduplexsectionsbyControlScript(orthroughtheCondi-
tionalPrintSectionwizard).
InConnect2018.2newscriptingcommandshavebeenaddedtodynamicallysetSheetConfiguration
optionsfromwithinaControlScript.ThisallowsyoutosettheDuplexmodedynamically,ordothings
suchasapplyingadifferentMasterPagesbaseduponthedata,oromittingemptysidesfromthelast
sheet,orsinglesheets.
ThefollowingControlScriptsampleenablesDuplexmodefor"Section 1":
let section = merge.template.contexts.PRINT.sections["Section 1"];
section.sheetConfig.duplex = true;
Thefollowingsnippetsetsthemediaandthemasterpagesfortheallsheetpostionsof"Section 1":
let section = merge.template.contexts.PRINT.sections["Section 1"];
section.sheetConfig.positions.all.media = "My Media";
section.sheetConfig.positions.all.allowContent = AllowContent.ALL_SIDES;
section.sheetConfig.positions.all.masterFront = "My Master Page";
section.sheetConfig.positions.all.masterBack = null;
Performance Improvements
l
Job Creation:Improvedjobcreationspeeds.Thisisparticularlythecasewithanyjobcreation
thatinvolvesanyprocessing,includingfiltering,groupingorsorting.(SHARED-50328)
l
DataMapper:ThedefaultamountofmemoryallocatedtoeachDataMapperenginehasbeen
increasedtoimprovebothperformanceandmemorymanagement.
l
Output:Improvedmemoryhandling,leadingtoevenbetterstability.
Page 1455