2022.2

Table Of Contents
data-repeat=
"name of detail table"
<tr>(atablerow)inthe
bodyofthetable
(<tbody>)
Notethatthisattributeis
notsupportedforrowsin
theheaderorfooterofa
table(<thead>,<tfoot>).
Arowwiththisattributeisrepeatedforeachrecordinthedetailtablethatisspe-
cifiedintheattribute'svalue.
Example:data-repeat="products".
Thenameofanesteddetailtableshouldincludeallitsparenttables,startingat
therootandseparatedwithdots.
Example:data-repeat="InstrumentClass.Sector.Holding".
Emptyrecords/datafieldsareskippedbydefault.
Thisattributecannotbeusedasaselectorfortemplatescripts,sinceit
getsremovedwhenthetableisexpanded,whichhappensbeforetem-
platescriptsrun.
data-script
<tr>(atablerow),<td>(a
tablecell),<span>
Whencreatingascriptforarow,cellorspaninaDynamicTablethisattributeis
setontheelementandusedasselector(see"Quick-startascriptwiththe
Createscriptbutton"onpage836).Itsvalueisthenameofadatafield;e.g.
data-script="ID".
data-show-row
<tr>(atablerow) Whensetonarowinthebodyofthetable(<tbody>),thisattributecausesarow
(alinewithdata)toappearbeforeand/orafterapagebreakifasub-tableruns
overmultiplepages.
Thisisparticularlyusefulintableswithseverallevelsandlongnestedtables.
Initiallythisattributeisomitted.Arowwithoutthisattributewillbedisplayedonce
perrecordinadetailtable.
Thisattributecanbesettothefollowingvalues:
l
all:Showtherowbeforeandafterapagebreak.
l
after-break:Showtherowafterapagebreak.
l
before-break:Showtherowbeforeapagebreak.
l
start-of-table:Onlyshowtherowatthestartofthetable.
Onarowintheheader(<thead>)orfooter(<tfoot>)ofthetable,thisattribute
canalsobesettothefollowingvalue:
l
end-of-table:Onlyshowthisrowonthelastpage.
data-sum
<td>(atablecell)inthe
headerorfooterofatable
Addsarunningtotal(i.e.asubtotal)toatablecellafterpagination.Itsvaluecon-
sistsofthepathtoanumericfieldinadetailtable,forexample:data-sum-
m="Items.Amount"willcalculateasubtotalbasedonthe"Amount"fieldinthe
"Items"detailtable.
Seealso:"Addingsubtotals"onpage748.
data-breakable
<tr>(atablerow) Thisattributeisaddedbythesoftwaretoeverycopiedrow(inPreviewmodeorinout-
put),ineachofthemwithauniqueIDasitsvalue.Thisisrequiredbythepagination
routinesofConnecttosplitthetableacrosspages.
Differences in Dynamic Tables made with previous Connect versions
InDynamicTablesmadewithConnectbeforeversion2020.1:
Page 758