About the Fetch Method on the Detail Datastream

The Fetch method on the detail datastream joins the master and detail data rows to create a combined data row, which is subsequently added to the RowList global list. The field structure of the combined data row is defined in the data row child component of the combined datastream component. In the Opportunities By Sales Rep example, the combined data row is CombinedDataRow, and this is a child of the GetFromList datastream.

The Fetch method in the detail datastream has the following code:

Function Fetch( ) As AcDataRow

Dim aInsideDataRow As ssPositionDataRow

Dim aOutsideDataRow As ssOpportunityDataRow

Dim aCombinedDataRow As CombinedDataRow

' Initialize the List Object if it has been initialized

' This should only happen for the first time through

If RowList Is Nothing Then

Set RowList = New AcSingleList

End If

' Get the current inside row

Set aInSideDataRow = Super::Fetch( )

If aInSideDataRow is Nothing Then

Set Fetch = Nothing

Exit Function

End If

' Get a pointer to the Outside Data Row Variable, declared on the DataSource