2022.2

Table Of Contents
JSON file options
AfterselectingaJSONfile,specifyifandhowtheJSONfilemustbesplitintomultiplerecords.
Thisisdonebyselectinganobjectorarrayasparent element.Itsdirectchildelements-objectsand
arrays,notkey-valuepairs-canbeseenasindividualsourcerecords.Iftherootisselected,therewill
beonlyonesourcerecord.
Whethersourcerecordsareoutputasindividualrecordsdependsonthetrigger.Either:
l
SelectOn elementtocreateanewrecordintheoutputforeachobjectorarrayintheparentele-
ment.
l
SelectOn changetocreateanewrecordeachtimethevalueinacertainkey-valuepair
changes.Onlykey-valuepairsthatexistattherootofachildelementcanbeevaluated.
Alldatafoundinchildelementsoftheselectedparentelementareextractedtofieldsattherootofthe
DataModel.Ifavalueconsistsofanobjectorarray,theentireobjectorarrayisextractedtoonedata
field.
Fieldnamesarederivedfromkeys,objectsandarraysinthefirstrecord,butthosearen'tnecessarily
thesameinasubsequentrecord.Iffollowingrecordshaveadifferentstructure,forexampleifarecord
hasmorechildelementscomparedtothefirstrecord,somedatamaynotgetextracted.
Tip: JSONdatacanalsobeimporteddirectlyintotheDataModel;see"AddingJSONsample
data"onpage306.
XML file options
SelectwhatlevelofXMLelementsdefinesarecord.
TheTriggeriswhattriggersthecreationofanewrecord.Itcanbesetto:
l
On element:ThisdefinesanewrecordwhenanewelementoccursontheselectedXMLlevel.
l
On change:ThisdefinesanewrecordwhenaspecificfieldunderthechosenXMLlevelhasa
newvalue.Afterselectingthisoption,youhavetoselectthefieldthattriggersthecreationofa
newrecord.
Addingdatafromadatabase
1. ClickFile,selectAdd DataandthenclickFrom database data source.Browsetothelocation
ofthefileandselectit.
TheDesignercanopendatabasesfromthefollowingtypesofdatasources:
Page 301