Share via


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:

  1. 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.

  2. Within the requisition.asp file, search for the function rsGetOrdersList.

  3. Within this function, search for the text string:

    oSearchInfo.user_org_id = mscsUserProfile(USER_ORGID).Value
    
  4. 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.