The PipeContext Dictionary

The PipeContext object is a Dictionary object that is passed through the pipeline as a holder of properties needed by pipeline components.

The PipeContext Dictionary object must contain the following values.

Value Description
MessageManager Reference to the MessageManager object (usually created in Global.asa).
DataFunctions Reference to the DataFunctions object (usually created in Global.asa).
QueryMap Reference to the QueryMap object (usually created in Global.asa). The QueryMap is a Dictionary object that contains a number of other Dictionary objects, each of which represents a query name and the SQL text of the query.
ConnectionStringMap Reference to the Dictionary object containing connection strings that are available to the site. (This property is copied from the site dictionary.)
DefaultConnectionString Default connection string for the site. (This property is copied from the site dictionary.)
Language Name of a message set (defined in the MessageManager object) containing error messages to be used by the pipeline components in the event of an error.
ReceiptStorage DBStorage object for receipts (needed only if saving receipts).
Shopper If AUO support is installed and the site uses the AUO, this property contains an AUO representing the customer. A component in the pipeline will use the AUO to load ShopperInfo into the OrderForm.

The following example creates a PipeContext object and initializes its values prior to running an OPP (the objects referred to are defined in Global.asa):

REM Set Pipecontext:
Set mscsPipeContext = Server.CreateObject("Commerce.Dictionary")
Set mscsPipeContext("MessageManager")        = MSCSMessageManager
Set mscsPipeContext("DataFunctions")            = MSCSDataFunctions
Set mscsPipeContext("QueryMap")                = MSCSQueryMap
Set mscsPipeContext("ConnectionStringMap")    = MSCSSite.ConnectionStringMap
mscsPipeContext("DefaultConnectionString")    = MSCSSite.DefaultConnectionString
mscsPipeContext("Language")                = "usa"
Set mscsPipeContext.ReceiptStorage = MSCSReceiptStorage
Set mscsPipeContext.Shopper = MSCSShopper

© 1997-1998 Microsoft Corporation. All rights reserved.