Simple example of a PARENT-ID-RELATION
- Last Updated: January 12, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The following is a sample XML file with nested child tables.
|
In the above XML file, CustomerOrders is a DataSet with two member tables:
- Customer with two fields, CustNum and Name
- Order with two fields, OrderNum and OrderTotal
Although there is no matching field between the nested Customer
and Order tables, the PARENT-ID-RELATION phrase provides
syntax for specifying a relationship between Customer and Order records
based on the RECID of the parent Customer record.
The following is a static ProDataSet definition for the above XML document:
|
The ABL code to create the data for the CustomerOrders ProDataSet and write out the XML is as follows:
|