Partilhar via


GetAllowedStatus Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Returns a dataset containing tables which define acceptable status values and acceptable applications to update PurchaseOrder objects.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Function GetAllowedStatus As DataSet
'Usage
Dim instance As OrderContext
Dim returnValue As DataSet

returnValue = instance.GetAllowedStatus()
public DataSet GetAllowedStatus()
public:
DataSet^ GetAllowedStatus()
public function GetAllowedStatus() : DataSet

Return Value

Type: System.Data..::.DataSet
A DataSet named that contains a two data tables that map to tables in the transactionconfig database

Remarks

The returned DataSet is named AllowedStatusDataSet and contains two data tables:

  • AllowedStatusTable maps to the AllowedStatus table in transactionconfig database and specifies which status values are allowed for PurchaseOrders. The allowed status may be something like "Cancelled", "InProcess", "NewOrder", "Rejected", "Shipped", or "Submitted".

  • StatusManagerTable maps to StatusManager table in transactionconfig database and specifies which applications can update the PurchaseOrders. For example, a site can modify new orders, or LOB adapters can modify the orders which are being processed.

GetAllowedStatus queries the database only when the cache is not configured.

Permissions

See Also

Reference

OrderContext Class

OrderContext Members

Microsoft.CommerceServer.Runtime.Orders Namespace