< Previous | Next >

Lesson 2: Add attributes to the module

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.

  1. To add the Type attribute, on the Attributes page, click Add Attribute.
  2. In the list of attributes, click Choice.
  3. On the Add Choice attribute page, specify the details for the attribute.
    1. In the Name field, enter Type.
    2. In the Description field, enter Type of the car.
    3. In the Items field, select Click here to add and edit choice items.
    4. On the Add Item page, click Add Item.
    5. In the Add Choice Item window, type Sports as the name and click OK.
    6. Add choice items for Sedan and Estate, and click OK to exit the Add Choice Item window.
    7. 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.
  4. To add the Price attribute, click Add Attribute.
  5. In the list of attributes, click Integer.
  6. On the Add Integer attribute page, specify the details for the Price attribute.
    1. In the Name field, type Price.
    2. In the Description field, type Price of the car.
    3. Click OK.
    4. 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.
  7. Click the arrow button (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.

Lesson checkpoint

In this lesson, you learned how to add different types of attributes to a module.
< Previous | Next >

Feedback