Siebel Reports Administration Guide > Method Reference > About the Essential DataStream Methods >

About the Delete Method

The Delete method destroys the datastream object and frees system resources. In the example below, custom code has been added before the Delete method on the superclass is called. Note that ssAcount has handled the deletion duties for its child datastreams and has handed the calls back to the server (EnableNotify).

The following code sample is from the Delete method in the ssAccountQuery datastream component in the Aclist (Account List) report.

Sub Delete ()

ssRestoreActiveRow (ssAccount)

If Not (ssAccount = 0) Then ssBusCompInvokeMethod (ssAccount, "SetIgnoreMaxCursorSize", "N")

If Not (ssAccount = 0) Then ssBusCompAllowNotification (ssAccount)

ssAccount = 0

Super::Delete ()

End Sub

Reports frequently have multiple report sections nested within one another to display detail, summary, or related data. Each report section requires a separate datastream component, and it is desirable that the datastreams be nested as well. This allows the master datastream to perform Start and Delete tasks for the child, enhancing efficiency.

The roles of the master datastream are:

  • To create the Siebel Object Manager interface handling calls to the server
  • To activate all fields for itself and its children
  • To decide whether a query needs to be executed again in order to accommodate a sort specification
  • To delete itself and all its children

The roles of the child datastream are:

  • To fetch DataRows
  • To format the fields as required
  • To perform sort specifications

NOTE:  Master datastreams do not have numbers appended to their names.

Siebel Reports Administration Guide