Skip to main content Skip to complementary content

Adding complex type attributes

If needed, you can add complex type attributes to an entity. In this example, a complex type attribute MovieInfo is added to the Customer entity created in Creating business entities in the data model.

Procedure

  1. Expand the business entity Customer and anonymous type, right-click the attribute Age and select Add Element (after) > Add Complex Type Element to open the Add Complex Type Element dialog box.
  2. Enter a name for the attribute, MovieInfo in this example, and keep the other options as default.
  3. Click OK to validate your changes.
  4. Expand the MovieInfo attribute and anonymous type, right-click subelement and select Edit Element from the contextual menu.
  5. Change the name to Movie, change the minimum occurrence to 0, the maximum occurrence to Many (leave it blank), and click OK to close the dialog box.

    A Change to sequence type dialog box pops up, showing that the Sub-Element Group is changed from All to Sequence. Click OK to close the dialog box.

Results

A complex type attribute MovieInfo is added and listed in the Customer entity, which describes the information of movies rented by the customer.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!