LoadChangedRecords (XmlDoc subroutine): Difference between revisions
RPuszewski (talk | contribs) No edit summary |
RPuszewski (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
This default value of this argument is [[FALSE]].</td></tr> | This default value of this argument is [[FALSE]].</td></tr> | ||
</table> | </table> | ||
==Examples== | ==Examples== | ||
As a simple example, | As a simple example, |
Latest revision as of 14:08, 22 April 2022
Load ChangedRecords into this XmlDoc (XmlDoc class)
[Introduced in Model 204 7.8 βeta]
This subroutine adds to an XmlDoc object a subtree that contains all record numbers that were changed within the current transaction.
Syntax
doc:LoadChangedRecords[( [Fields= boolean])]
Syntax terms
doc | XmlDoc object |
---|---|
Fields | Boolean value If TRUE is specified, the fields from the changed record will be included within the subtree. |
Examples
As a simple example,
FRN %x change bar to ("BAR" %x) end for %doc = new %doc:loadChangedRecords(Fields=true) %doc:print
The XmlDoc would have a structure similar to the following:
<ChangedRecords> <Record version="version#" file="file" number="%x"> <field ...> ... first field from record %x </field> ... </Record> </ChangedRecords>