2022.2

Table Of Contents
Thescriptcouldthenusetheresultsobjecttohideorshowthoseparagraphs,dependingonthe
valueofthedatafieldCountryinthecurrentrecord:
if (record.fields["Country"] == "CANADA") {
results.show();
} else {
results.hide();
}
Note: Thisobjectcan'tbeusedinControlScripts,becausetheydon'thaveaselector.
Tip: Theeasiestwaytoaccesstheelementsinaresultsetonebyone,isbysettingthescopeof
thescriptto"Eachmatchedelement"andusingthethisobject(see"this"onpage781).
Property
Field Type Description
length Number Number of elements in this result set. Equivalent to calling size().
Functions
Thefunctionsbelowcanbecalledbytheresultsobjectandbyanyotherresultsetthatisreturnedby
aquery,see"query()"onpage742.
Function Description
"add()"onpage784 AddselementstoasetofHTMLelements.
"addClass()"on
page785
AddsthespecifiedclasstoeachelementinasetofHTMLelements.Hasnoeffectiftheclassisalreadypresent.
"after()"onpage786 InsertscontentaftereachelementinasetofHTMLelements..
"append()"on
page788
InsertscontentattheendofeachelementinasetofHTMLelements.
"attr()"onpage791 ChangethegivenattributeoftheelementorsetofHTMLelementswiththegivenvalue.
"before()"on
page792
InsertscontentbeforeanelementorbeforeeachelementinasetofHTMLelements.
"children()"on
page794
ReturnstheimmediatechildrenofanHTMLelement.
Page 746