How to Display a Custom Profile Property in the Customer and Orders Manager
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
This topic describes how to create a custom property on a UserObject profile, and then view the property in the Customer and Orders Manager.
You must first create the custom property, edit modify the PresentationInfo XML file(s), and reset IIS before you can view the property in the Customer and Orders Manager.
To create a custom property on a UserObject profile
Click Start, point to All Programs, point to Commerce Server 2007, and then click Commerce Server Manager.
In Commerce Server Manager, locate the Profiles global resource for your site.
Click your Profiles global resource, click Profile Catalog, click Profile Definitions, and then click User Object.
In the right pane, click General Information, and then click Add to define a new property in this group.
In the Add -- Web Page Dialog dialog box, select Add a new property, and then click OK.
The property New Property 1 appears in the list of properties under General Information.
In the Detailed Information section, expand the Advanced Attributes section, in the Map to data box, click the ellipsis [...] button.
In the Data Source Picker -- Web Page Dialog dialog box, click ProfileService_SQLSource, click User Object, click Custom Property 1, and then click OK.
In the Detailed Information section, in the Attributes section, in the Name box, type Gender. In the Display name box, type Gender. In the Description box, type a general description for the property, and then click Apply.
Click Save on the toolbar to save the User Object profile definition.
To modify the PresentationInfo files
Move to the file directory where the Profiles Web service for your site points to, and open the en_PresentationInfo.xml file in a text editor, such as Notepad.
Locate the <profile> section and under the <displayArea> section, add a <property> element for the previously defined Gender property. The <property> element to add should resemble the following:
<profile name="UserObject" displayName="User Object" description="User Object"> <displayArea name="main" displayName="Main"> <property name="Gender" displayName="Gender" description="Property to track Gender of user"/>
Run the IISReset command and then refresh the Customer and Orders Manager.
When you open an existing user object in the Customer and Orders Manager or when you create a new user object, the new Gender property will be available for use.