Share via


OrderGroupManager.SimpleFind Method (PIA)

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

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Function SimpleFind(sfSearchInfo As ISimpleFindSearchInfo,
  sfResultInfo As ISimpleFindResultInfo,
  Optional ByRef outTotalRecordsFound As Object) As Object

[C#]

using Microsoft.CommerceServer.Interop.Orders;
using ADODB26Lib;                              //For Recordset
…
public object SimpleFind(ISimpleFindSearchInfosfSearchInfo,
  ISimpleFindResultInfosfResultInfo,
  ref objectoutTotalRecordsFound);

Parameters

[Visual Basic .NET]

  • sfSearchInfo
    An object that implements the ISimpleFindSearchInfo interface containing the search criteria.
  • sfResultInfo
    An object that implements the ISimpleFindResultInfo interface containing the search results.
  • outTotalRecordsFound
    An Object that contains the total number of records found.

[C#]

  • sfSearchInfo
    The ISimpleFindSearchInfo interface of a SimpleFindSearchInfo object that contains the search criteria.

    sfResultInfo

    The ISimpleFindResultInfo interface of a SimpleFindResultInfo object that contains the search criteria.

  • outTotalRecordsFound
    A reference to an object that contains the total number of records found.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns a Recordset that contains the search result OrderGroup items.

[C#] This method returns a Recordset of the OrderGroup items.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

Example

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

Dim oSFResult
osfResult = New SimpleFindResultInfo()
oSFResult.JoinLineItemInfo = True
oSFResult.JoinOrderFormInfo = True

Dim oRSResults
oRSResults = New Recordset()

oRSResults = oOGMgr.SimpleFind(oSFSearch, oSFResult)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Interop.Orders.Requisition.dll

See Also

Order Processing Objects

OrderGroupManager Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.