AddChild

Adds a new DataRow to the named parent/child relationship. If the named relationship exists, the supplied DataRow will be appended to the existing DataRow collection. Otherwise, a new collection will be created with the supplied DataRow as its only element.

Syntax

public void addChild(String childName, DataRow childDataRow) 

Parameters

  • Name - the name of the parent/child relationship (e.g., "Flood Plain Data," "References, " "Used By," etc.)
  • Value - the DataRow to be added to the relationship.

Results

None.

Example

DataRow childDataRow = new DataRow(); 
childDataRow.set("Address", "100 Congress"); 
...
DataRow dataRow = new DataRow(); 
...
dataRow.addChild("child1", childDataRow);