2022.2

Table Of Contents
Writingexpressions
Toinsertanexpressionthatgetsreplacedwiththevalueofafieldinyourdata,youcansimplywrite
thefieldnamebetweendoublecurlybraces:{{FieldName}}.
l
Awhitespacebeforeandafterthefieldnameisaccepted,e.g.{{ FirstName }}.
l
Ifthefieldnamecontainsaspaceyouwillalsoneedtoencloseitinsquarebrackets:{{[Field
Name]}}.
ThisworksinDesignviewandinSourceview.InSourceviewyoucouldevenplaceexpressionsinside
HTMLtagsandattributes.
Insertingexpressionsviadrag-and-drop/double-click
Thedrag-and-dropordouble-clickmethodisbestfordatathatdonotneedtobeprecededorfol-
lowedbyaspace,linebreakortext.Otherwiseitisbettertousethewizard(see"UsingtheHelperWiz-
ard"onpage725).
1. OpenthesectionorMasterPageyouwanttoaddthedatafieldto.
2. Either:
l
Drag and dropadatafieldfromtheData Modelpaneatthebottomrightintothecontent
ofyourtemplate.
Toselectandinsertmultipledatafieldsatthesametime,youcouldpressShiftorCtrl,
whilstselectingfieldsintheDataModelpane,butitwouldbebettertousethewizard(see
"UsingtheHelperWizard"onpage725).
l
Placethecursorinthetemplatewhereyouwantthedatatobeinsertedandthendouble-
clickthedatafieldintheDataModelpane.
ThisworksinDesignviewandinSourceview.
Tip: PresstheCtrlkeywhile draggingtowraptheexpression(s)inanabsolutepositionedbox(a
div)atthecursorposition.
AbsolutepositionedboxesareparticularlyusefulwhenthedocumentmainlyconsistsofaPDF
usedasthebackgroundimageofasection(see"UsingaPDFfileorotherimageasbackground"
onpage451).
Note: Thisdoesn'tworkfordatainadetailtable.
DataindetailtablescanbeinsertedinaDynamicTableusingtheDynamicTablewizard(see
"DynamicTable"onpage742).
DetaildatacanalsobeinsertedusingBlockHelpers(see"BlockHelpers"onpage767).
Whathappensisthat:
Page 723