Release 10.1A: OpenEdge Development:
Java Open Clients

> ## Finding a row in a ProDataGraph

> You can find a row (`ProDataObject` instance) in a `ProDataGraph` in different ways, depending on how the tables (`ProDataObject` collections) are related (what `ProDataRelationMetaData` is associated with the `ProDataGraph`). If a table does not participate in any data-relations, the only way to find a row is to search through the entire `ProDataObject` list that you can get using the `ProDataGraph` `getProDataObjects()` method for a given table. If you know that a table you are searching participates in a data-relation, you can use the data-relation to find related parent and child rows for each `ProDataObject` in the table.

> ##### Finding parent rows

> With the name of a data-relation that identifies a parent table, you can use the `ProDataObject` `getParentRow()` method to return the parent row for a `ProDataObject` instance.

> ##### Finding child rows

> With the name of a data-relation that identifies a child table, you can use the `ProDataObject` `getChildRows()` method to return a list of child rows for a `ProDataObject` instance. You can then search this filtered list of child rows to find the appropriate `ProDataObject`.

> For more information on retrieving data from an output `ProDataGraph`, see the "Passing a ProDataGraph as OUTPUT" section.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095