SetChildren

Sets the rows of a supplied, named parent/child relationship. If rows previously existed under this name, they will be returned to the caller.

Syntax

ASCII Version
list< SmartPointer<DataRow> > setChildren(const char* childName, list< SmartPointer<DataRow> > dataRows) 
Unicode Version
list< SmartPointer<DataRow> > setChildren(const UnicodeString childName, list< SmartPointer<DataRow> > dataRows) 

Results

Returns the set of the names of the named parent/child relationships.

Example

SmartPointer<DataRow> dataRow1=new DataRow(); 
dataRow1->set("Address", "100 Congress"); 
dataRow1->set("City", "Austin"); 
SmartPointer<DataRow> dataRow2=new DataRow(); 
dataRow2->set("Address", "200 Congress"); 
dataRow2->set("City", "Austin"); 
list< SmartPointer<DataRow> > rows ; 
rows.push_back(dataRow1); 
rows.push_back(dataRow2); 
list< SmartPointer<DataRow> >	rowsNewChildren = dataRowSpt- >setChildren("child1", rows);