You can use a data-relation to retrieve child records related to the parent. A parent
ProDataObject instance (representing a single table row) contains a list of references to the related child
ProDataObject instances (representing one or more table rows). For a each data-relation, these references are represented in every parent row as a many-valued reference property in order to support multiple child rows. After you instantiate a
ProDataGraph and add all
ProDataObject instances, you can then call the
ProDataGraphsetChildTableReferences( ) method, which uses the specified key relationships to create all the child reference property lists in each parent
ProDataObject as provided by the data-relations defined for the
ProDataGraph.
Note: The requirement to map data-relations in a
ProDataGraph to data-relation objects in a ProDataSet depends on whether the ProDataSet parameter is static or dynamic and what the application service expects. For more information, see the information on preparing to pass parameters using different modes in
Preparing and passing ProDataSets as ProDataGraph parameters