How to Add a Custom Attribute to a Profile Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
The Profiles Schema Manager provides each property with attributes that store characteristics of the property, such as the property name (City) and the property type (string). Besides the property attributes provided by the Profiles Schema Manager, you can also define custom attributes for properties. For example, you can create a custom attribute that controls how you can use a property on a Web site.
To add a custom attribute to a profile property
Expand Commerce Server Manager, expand Global Resources, expand Profiles, expand Profile Catalog, expand Profile Definitions, and then click the profile definition that contains the property to which you want to add a custom attribute.
In the Commerce Server Manager, in the right pane, in the Properties list, select the property to which you want to add a custom attribute.
In the Commerce Server Manager, in the right pane, in the Custom Attributes section, click New.
In theCommerce Server Manager, in the right pane, in the Custom Attributes section, do the following:
Use this
To do this
Name
Type a programmatic name for the custom attribute. The name can contain a maximum of 127 alphanumeric characters and the underscore (_) symbol. The name cannot contain spaces.
Display Name
Type a display name that contains a maximum of 127 Unicode characters.
Description
Type a description for the attribute. The description can contain a maximum of 127 Unicode characters.
Value
Type the value of the attribute.
Click Accept, and then click Apply.
To save the profile definition, click the Save icon on the toolbar.
The profile definition is saved with the custom attribute.