2022.2

Table Of Contents
Expressions or placeholders?
AnewDynamicTableinatemplatemadewithOLConnectversion2022.2orhigherisbydefaultfilled
withexpressions.Expressionslooklikethis:{{FieldName}}.
ExpressionsarereplacedwithdatabytheHandlebarslibrarywhichisintegratedinOLConnect.(See
"HandlebarsinOLConnect"onpage763.).Unlikeexpressionsinsections,whicharereplacedwith
datafromthecurrentrecord,expressionsinaDynamicTablearereplacedwithdatafromoneormore
detail tables.(Nestedtablesaresupported,soasingleDynamicTablecanusemultipledetailtables.)
IntemplatesmadewitholderversionsofOLConnect,DynamicTablesarebydefaultfilledwithplace-
holders.Placeholderslooklikethis:@UnitPrice@.
Whetheracellcontainsexpressionsorplaceholdershasanimpactonhowitcanbeedited.See:"Edit-
ingcellsinaDynamicTable"onpage750and"FormattingvaluesinaDynamicTable"onpage752.
Switching between expressions and placeholders
Whetherexpressionsorplaceholdersareuseddependsonasettinginthesection.Here'showto
changethatsetting.
1. OntheResourcespane,right-clickthecurrentsectionandclickProperties.
2. ChecktheoptionEvaluate Handlebars expressionstogetexpressionsinnewDynamicTables
andwhenyouinsertvariabledatainthetemplate(see"Variabledataintext:expressions"on
page722).Unchecktheoptiontogetplaceholdersinstead.
ItisnotpossibletoswitchfromplaceholderstoexpressionsontheflyinanexistingDynamicTable.To
changehowthecellsarefilled,youwillhavetoadjustthepropertiesofthesectionaccordinglyand
thenre-inserttheDynamicTable.
AddingarowtotheheaderorfooterofaDynamicTable
ADynamicTablethatiscreatedbytheWizardalwayshasaheader(a<thead>element).Itwillalso
haveafooter(a<tfoot>element)ifyouchosetoaddSubtotals.
SometimesyoumaywanttoaddmorerowstotheheaderorfooterofaDynamicTable,forexample,to
addtaxesand/orthetotalofaninvoice,ortoaddacustommessage.
AheaderorfooterrowcanbeaddedtoaDynamicTableasfollows.
Page 747