2022.2

Table Of Contents
1. Intheworkspace,opentheDesigntab.
2. Ifthetabledoesn'thaveaheader/footer,addit(see"Addingaheaderorfooter"onpage657).To
determineifatablehasaheaderand/orfooter,expandthetableonthe"Outlinepane"on
page977.
3. Ifyouneedanextrarowintheheaderorfooter:
a. Right-clicktheheaderorthefooterofthetable,dependingonwhereyouwanttoaddarow.
b. Ontheshortcutmenu,selectRow > Insert beloworInsert above.
4. Specifyonwhichpagestherowmustappearintheoutput:
a. Selecttherowtowhichyouwanttoaddasubtotal(see"Selectinganelement"onpage570).
b. Onthe"Attributespane"onpage969,selectoneoftheoptionsfromtheShow Rowdrop-down:
l
All:Therowwillappearonallpages.
l
Before page break(footerrowsonly):Therowwillappearonallpagesexceptthelast.
l
After page break(headerrowsonly):Therowwillappearonallpagesexceptthefirst.
l
At end of table:Therowwillonlyappearonthelastpage.
5. Now,addthesubtotaltoacellinthatrow.Thisprocedureisthesameforsubtotalsintheheader
andfooter.
a. Selectthecell(see"Selectinganelement"onpage570).
b. Selectthedatafield:
l
Onthe"Attributespane"onpage969,fromtheSumdrop-down,selectthedatafieldon
whichthesubtotalmustbebased.Thedrop-downwillofferalleligiblefields,includingthose
innesteddetailtables.
l
Alternatively,e.g.toselectadatafieldinanesteddetailtable,switchtoSourceviewand
manuallyaddthedata-sumattributetothetablecell(the<td>element).
Itsvalueshouldconsistofthepathtothedatafield.Forexample:<tddata-sum-
m="Instruments.Items.Amount">.Thiscellwillhaveasubtotalbasedonthe"Amount"field
inthe"Items"detailtablewhichisnestedinthe"Instruments"detailtable.
c. Youcouldalsoaddtextlike"continuedonnextpage"or"continuedfrompreviouspage"tothecell.
See"EditingcellsinaDynamicTable"onthefacingpage.
Subtotals inside a Dynamic Table
Subtotalsnormallyappearintheheaderorfooterofatable;however,itisalsopossibletoinsertsub-
totalsincellsinthebodyofatable.
Page 749