When you create a module, a list of predefined attributes
is displayed. In this lesson, you add two more attributes to the module
to specify information about the type and price of the cars.
You must be a workspace administrator to add attributes to
a module.
For the type of the car, define a choice attribute so that
a selection can be made from a predefined set. Specify the types as
Sports, Sedan, and Estate.
For the price of the car, define an integer
attribute.
- To add the Type attribute, on the Attributes page,
click Add Attribute.
- In the list of attributes, click Choice.
- On the Add Choice attribute page,
specify the details for the attribute.
- In the Name field, enter Type.
- In the Description field, enter Type
of the car.
- In the Items field, select Click
here to add and edit choice items.
- On the Add Item page, click Add
Item.
- In the Add Choice Item window,
type Sports as the name and click OK.
- Add choice items for Sedan and Estate, and click OK to
exit the Add Choice Item window.
- Do not modify other values on the Add Choice
attribute page. Click OK. The Type attribute is listed as the last attribute on
the Attributes page.
- To add the Price attribute, click Add Attribute.
- In the list of attributes, click Integer.
- On the Add Integer attribute page,
specify the details for the Price attribute.
- In the Name field, type Price.
- In the Description field, type Price
of the car.
- Click OK.
- Do not modify other values on the Add Integer
attribute page. Click OK.
The Type and the Price attributes are listed at the bottom
of the attributes list.
- Click the arrow button (
) to move the Type and
the Price attribute above the Element
Information heading.
The cars module contains the attributes with which you can
specify the type and price of the car. You can now add cars as elements
to the module.