OrderGroup.AggregateOrderFormValues Method (PIA)

Use this method to iterate across all OrderForm objects, compute a total of the specified key, and store the total at the OrderGroup object level.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Sub AggregateOrderFormValues(strOrderFormKey As String,
  strOrderGroupKey As String)

[C#]

using Microsoft.CommerceServer.Interop.Orders;
…
public void AggregateOrderFormValues(stringstrOrderFormKey,
  stringstrOrderGroupKey);

Parameters

[Visual Basic .NET]

  • strOrderFormKey
    A String that specifies the OrderForm key of the value to be aggregated.
  • strOrderGroupKey
    A String that specifies the OrderGroup key of the value to which the aggregated total will be written.

[C#]

  • strOrderFormKey
    A string that specifies the OrderForm key of the value to be aggregated.
  • strOrderGroupKey
    A string that specifies the OrderGroup key of the value to which the aggregated total will be written.

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

' oOrderGroup is a Commerce.OrderGroup object
oOrderGroup.AggregateOrderFormValues("saved_cy_handling_total", _
"_cy_handling_total")

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

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

See Also

OrderGroup Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.