Raj
Raj

Reputation: 231

PowerDesigner Import Table from Excel to create

I have an Excel file with the following format:

I am using the "Excel import wizard" in PowerDesigner, and I am unsure about the selections I need to make after choosing the file.

Any guidance or step-by-step instructions on the selections to make in these options would be greatly appreciated.

Upvotes: 0

Views: 315

Answers (1)

pascal
pascal

Reputation: 3365

The details in the similar question could help you. There are many explanations also in the Comment of the Excel Import extension.

You have to select one class to import each sheet from the Excel document.

Given your list of columns, you are importing "Entity.Entity Attribute" (in "Import table: Sheet1, As:").

  • First column becomes a Domain
  • Second column becomes a <Parent> (the object under which the Entity Attribute is attached)
  • Third column becomes the Name
  • Fourth column becomes the Data Type.

In my test, it nearly works, with just some error messages about the Data Type:

enter image description here

Error: Could not set attribute DataType for Entity Attribute 'Employee.First name' with value 'A30' (Cannot set value 'A30' for attribute Data Type of Entity Attribute 'Employee.First name': Data Type cannot be set to this value)

enter image description here

Maybe it would be more efficient to have several sheets:

  • first sheet: Domain (name, code, data type)
  • second sheet: Data Item (name, code, data type, domain name)
  • third sheet: Entity Attribute (entity, data item name)

EDIT: moved "domain name" from the third to the second sheet in the final suggestion.

Upvotes: 0

Related Questions