2022.2

Table Of Contents
beusedtocreateaTableOfContents(TOC),asexplainedinthetopic:"CreatingaTableOfContents"
onpage411.
See"PostPaginationScripts"onpage410.
Loading data
InordertopersonalizethecontentofatemplateintheDesigner,youneedtohaveaDataModelanda
sampleofcustomerdata.AtthedesignstagetheDesignerdoesn'tneedtohaveaccesstoalldata;it
justneedstoknowwhichdatafieldsexistinyourdataanditneedssomedatatobeabletodisplaya
previewoftheoutput.
TogetaccesstoaDataModelanddata,youcanopen:
l
Adatafile,see"Addingdatafromadatafile"below.
l
Adatabase,see"Addingdatafromadatabase"onpage301.
l
JSONsampledata,see"AddingJSONsampledata"onpage306.
Whenyouopenadatafileoradatabase,theDataModelwillbederivedfromit.
Afteropeningadatafileordatabase,theData Modelpaneattherighthandbottomshowsthedata
fieldsthatoccurinthedata.
TheValuecolumndisplaysdatafromthefirstrecordinthedatafile.UsetheFirst,Previous,Nextand
Lastbuttonstobrowsethroughtherecords,orusethePageUp,PageDown,HomeandEndkeys.
Notethatallvaluesarestrings.
Addingdatafromadatafile
1. ClickFile,selectAdd DataandthenclickFrom file data source.Browsetothelocationofthe
fileandselectit.
TheDesignercanopenthefollowingtypesofdatafiles:
l
Tabularfiles:CSVfiles(.csv,.txt)andMicrosoftExcelfiles(.xls,.xlsx)
Note: Excelfilessavedin"StrictOpenXML"formatarenotsupportedyet.
l
MicrosoftAccessDatabase(.mdb,.accddb)
l
JSONfiles(JSON)
l
XMLfiles(.XML)
l
AFPfiles(optional).
2. Reviewtheoptionspresented,toensurethatthedatawillbeinterpretedcorrectly.Theoptions
availabledependonthetypeofdatafile(seebelow).
Page 299