> Wht (sic) is '$record' here?
Have a look at Working with Multiple Data Records by John Brinkman. It is used to process multiple records by an XFA form.
From the Scripting Reference included with LiveCycle Designer:
Represents the current record of a collection of data, such as from an XML file. For example,
$record.header.txtOrderedByCity
references the txtOrderedByCity
node within the header
node of the current XML data.
> 2) in Whit (sic) cases/references i should use 'xfa' as a prefix, do i need to use for each and every node/attribute/text field?
XFA refers to the root node.
Depending upon when, where, and what object you are referring to, you may need to provide the full node structure path and name or you can use the abbreviated name.
See "Referencing object properties and values" in LIveCycle Designer's "Scripting Reference" under the "Help" menu option.