OrderGroupManager.SimpleFind

Ee824571.c++_on(en-US,CS.10).gifEe824571.vb_off(en-US,CS.10).gif

Use this method to retrieve an ADO recordset of OrderGroup items based on the specified SimpleFindSearchInfo and SimpleFindResultInfo object values. These object values contain the search criteria.

Definition

Function SimpleFind(sfSearchInfo As Object,sfResultInfo As Object,Optional outTotalRecordsFound As Variant) As Variant

Parameters

sfSearchInfo

A SimpleFindSearchInfo object that contains the search criteria.

sfResultInfo

A SimpleFindResultInfo object that contains the search criteria.

outTotalRecordsFound

A Variant that contains the total number of records found.

Return Values

If this method completes successfully, it returns an ADO recordset that contains the search result OrderGroup items.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

Dim oSFSearch, sReqID, oOGMgr
' oOGMgr is a Commerce.OrderGroupManager object
Set oSFSearch = Server.CreateObject("Commerce.SimpleFindSearchInfo")
' Search for this OrderGroup ID
sReqID ="754C40C6-EAA9-454C-A8AB-02789FBE0FB9"
oSFSearch.ordergroup_id = sReqID

Dim oSFResult
Set osfResult =Server.CreateObject("Commerce.SimpleFindResultInfo")
oSFResult.JoinLineItemInfo = True
oSFResult.JoinOrderFormInfo = True

Dim oRSResults
Set oRSResults=Server.CreateObject("ADODB.Recordset")

Set oRSResults= oOGMgr.SimpleFind(oSFSearch, oSFResult)

See Also

Business Process Objects

OrderGroupManager Object


All rights reserved.