Form Definition Keys Used in Solution Sites

The subroutine Main in the file include\global_main_lib.asp executes the following line of code to initialize the form definitions Dictionary object and assign it to the intrinsic Application object using the key "MSCSForms":

Set Application("MSCSForms") = GetFormDefinitions()

The function GetFormDefinitions contains lines of the following form, which establish a series of SimpleList objects to represent the various forms used within the Solution Sites, and associate them with well-known key names in the Form Definition Dictionary:

Set dictForms.Value("FormDefKey") = GetFormTypeFieldDefinitions()

The following table shows the form definition keys used in the Solution Sites and the corresponding initialization function.

Form Definition Keys Initialization Function
AddressBookAddress GetAddressBookAddressFieldDefinitions
BillToAddress GetAddressFieldDefinitions
CreditCard GetCreditCardFieldDefinitions
Login GetLoginFieldDefinitions
PurchaseOrder GetPurchaseOrderFieldDefinitions
Registration GetRegistrationFieldDefinitions
ShipToAddress GetShipToAddressFieldDefinitions

Once defined, the form definitions are accessed in various pages in the Solution Sites and used for preparing the HTML from which the form will be rendered, as well as in form validation routines. The Solution Sites code contains lines of the following form to retrieve the SimpleList object that represents the fields of a particular form:

Set listFlds = Application("MSCSForms").Value("FormDefKey")

Copyright © 2005 Microsoft Corporation.
All rights reserved.