Changing Requisition.asp
Edit the requisition.asp file so that orders can be viewed from the site.
To change Requisition.asp
Within the requisition.asp file, do the following:
Open the requisition.asp file by using a plain-text application such as Microsoft Notepad. The requisition.asp file is located in the <drive>:\inetpub\wwwroot\<site name>\services\include folder on the Commerce Server computer, where <drive> is the drive where IIS is installed.
Within the requisition.asp file, search for the function rsGetOrdersList.
Within this function, search for the text string:
oSearchInfo.user_org_id = mscsUserProfile(USER_ORGID).Value
Replace the text listed above with the following text:
Dim org_id Dim rsOrg If Not IsNull(org_name) Then ' Set rsGetProfile's bForceDBLookUp to False to avoid a database look-up. Set rsOrg = rsGetProfileByKey(FIELD_ORG_NAME, org_id, PROFILE_TYPE_ORG, False) If Not rsOrg Is Nothing Then oSearchInfo.user_org_id = rsOrg.Fields.Item("GeneralInfo.org_id").Value End If End If
Copyright © 2005 Microsoft Corporation.
All rights reserved.