OrderGroupManager.FindTemplatesForUser

Ee810921.c++_on(en-US,CS.10).gifEe810921.vb_off(en-US,CS.10).gif

Use this method to build and return an ADO recordset of OrderGroup templates for the specified user.

Definition

Function FindTemplatesForUser(UserId As String,SearchDateTimeColumn As Variant,SearchDateTimeStart As Variant,SearchDateTimeEnd As Variant,JoinOrderFormInfo As Variant,JoinLineItemInfo As Variant,Columns As Variant,OrderGroupSortColumn As Variant,SortDirection As Variant,PageSize As Long,PageNumber As Long,outTotalRecordsFound As Variant) As Variant

Parameters

UserId

A String that contains the User ID GUID.

SearchDateTimeColumn

A Variant that contains the DateTime column name to use in the search.

SearchDateTimeStart

A Variant that contains the search DateTime start value.

SearchDateTimeEnd

A Variant that contains the search DateTime end value.

JoinOrderFormInfo

A Boolean that indicates whether the OrderFormHeader table is included in the search. A value of True indicates that the table is included. A value of False indicates that the table is not included.

JoinLineItemInfo

A Boolean that indicates whether the OrderFormLineItem table is included in the search. A value of True indicates that the table is included. A value of False indicates that the table is not included.

Columns

A Variant that contains the names of columns that you want returned in addition to the default columns.

OrderGroupSortColumn

A Variant that contains the OrderGroup sort column.

SortDirection

A Variant that contains the sort direction.

PageSize

A Long that contains the page size.

PageNumber

A Long that contains the page number.

outTotalRecordsFound

A Variant that contains the total number of records found. This parameter is optional.

Return Values

If this method completes successfully, it returns a Variant that contains an ADO recordset of the search results.

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

' oOrderGroupManager is a Commerce OrderGroupManager object
oOrderGroupManager.FindTemplatesForUser("{11223344-1122-1122-1122- _
    AABBCCDDEEFF}")

See Also

OrderGroupManager Object

Business Process Objects


All rights reserved.