2022.2

Table Of Contents
Properties
Property Description
copies Thetotalnumberofcopiesofthecurrentrecordthatmustbecreated.Bydefault,thisis1.Thisvalueisusedwhentherecordis
saved,attheendofthedatamappingprocessforeachrecord.
fields Thefieldvaluesthatbelongtothisrecord.Youcanaccessaspecificfieldvalueusingeitheranumericindexorthefieldname.
index Theone-basedindexofthisrecord,orzeroifnodataisavailable.
tables Thedetailtablesthatbelongtothisrecord.Youcanaccessaspecifictableusinganumericindexorthetablename;see
"table"onpage402.
Example
SeethisHow-toforanexampleofhowthecurrentrecord indexand/orthetotalnumberofrecordsin
therecordsetcanbedisplayedinadocument:Howtogettherecordindexandcount.
Methods
Note: Thesemethodscannotbeusedinpost-processorscripts,becausetheyoperateonthecur-
rentrecordbeforeitiswrittentothedatabase.
Method Description
"set(record)"below Setsfieldvaluesinthecurrentrecord.
"setCopy(i,record)"onthefacingpage Setsfieldvaluesinacopyofthecurrentrecord.
set(record)
Thismethodoftherecordobjectsetsfieldvaluesinthecurrentrecordinthemaindataset,orinarow
inadetailtable.(Seealso:"record"onpage393.)
Note: Thismethodcannotbeusedinpost-processorscripts,becauseitoperatesonthecurrent
recordbeforeitiswrittentothedatabase.
record
ThemandatoryrecordparameterisaJavaScriptobjectthatcontainsoneormorefieldsspecifiedin
theDataModel.
TherecordparametermaycontainasubsetofthefieldsintheDataModel.Onlythefieldsincludedin
Page 391