foois the control name. For example:
$price, the result is actually an XML node, as this is how Orbeon Forms stores data internally. Think of a node as a container for a value:
data(). For example when you perform a multiplication:
data()function can be a little tricky because of this. Now say you'd like instead to concatenate the text of those nodes containing decimal values even if the don't contain valid decimal values. Then you have to explicitly use the
priceon each row
quantityon each row
row-totalon each row
totalbelow the grid
row-totalcalculated value applies to the closest
quantitycontrols, that is, those on the same row, and each row gets its own row total.
totalcalculation is outside the repeat, and when it refers to
row-totalvalues are returned. Therefore, the sum applies to all the
row-totalvalues (assuming they can be cast as
xs:decimal, in this example).
foois the control name) are automatically updated.