Chapter 4 Extending your Models with Profiles


Creating an extended attribute type

You can create an extended attribute type in the Shared folder in order to define the data type and authorized values of extended attributes. Creating extended attribute types allows you to reuse the same list of values for several extended attributes without having to write code. These types are available in the extended attribute Data Type list.

You can also define a list of values for a given extended attribute from its property page using the Data Type list. For more information, see Extended attribute properties.

Steps To create an extended attribute type:

  1. Right-click the Profile\Shared category and select New→Extended Attribute Type in the contextual menu.
  2. Enter the appropriate properties, including a list of values and a default value.
  3. Click Apply to save your changes.

Once created the new type is available to all other extended attributes with a name as follows: <Attribute Name> type. You can click the Properties tool to the right of the Data type field to edit the type.

Data types display as tools in custom forms helping you to specify a default value for the extended attribute type, as in the following example:


 


Copyright (C) 2008. Sybase Inc. All rights reserved.