Create a data-relation from selected parent and child key fields
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The following constructor creates a ProDataRelationMetaData object
from column properties selected as key fields in specified parent
and child tables (ProDataObject collections):
Syntax
|
- name
- Specifies the name of the
ProDataRelationMetaDataobject. - parentIx
- Specifies a 0-based index to a parent
ProDataObjectcollection that corresponds to an index into the array of table names returned by theProDataGraphMetaDatagetTableNames( ) method. - childIx
- Specifies a 0-based index to a child
ProDataObjectcollection that corresponds to an index into the array of table names returned by theProDataGraphMetaDatagetTableNames( ) method. - numPairs
- Specifies the number of column property pairs (key field pairs) that represent this relationship.
- pairsList
- Specifies a
Stringcontaining a comma-separated list of column property names. The list consists of numPairs column pairs, where the parent's column property name is followed by its matching child column property name. For example:- If numPairs =
1, pairsList might contain:
"pCustName,cOrderCustName"as one pair of parent and child property names - If numPairs = 2, pairsList might
contain:
"pCustName,cOrderCustName,pCustBranch,cOrderBranch"as two pair of parent and child property names
The data types of the named parent and child column property pairs must be comparable.
- If numPairs =
1, pairsList might contain: