Author Topic: Excel import/export the "Initial Value" field under "Attributes  (Read 3696 times)

EA_enthusiast

  • EA User
  • **
  • Posts: 172
  • Karma: +0/-0
  • I'm a lifelong learner
    • View Profile
Excel import/export the "Initial Value" field under "Attributes
« on: December 28, 2020, 04:54:16 pm »
Hello, EA experts

I am trying to import/export (from and to Excel) the "Initial Value" field under "Attributes (among other fields of course). I am using this field to show a range of values (as shown in the screenshot)

https://ibb.co/gvzK2cb

How can I import/export the "Initial Value" field?

This does not seem to be possible using Bellekens tool and I tried to do so using MDG Integration for Office but I failed.

Thank you in advance.
Mo
Thank you to all the contributors who spread their knowledge and experience!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Excel import/export the "Initial Value" field under "Attributes
« Reply #1 on: December 28, 2020, 06:42:12 pm »
You need to include
Code: [Select]
a.Default as InitialValue in the export query in the configuration tab to add include the initial value in the export.

Geert

EA_enthusiast

  • EA User
  • **
  • Posts: 172
  • Karma: +0/-0
  • I'm a lifelong learner
    • View Profile
Re: Excel import/export the "Initial Value" field under "Attributes
« Reply #2 on: December 29, 2020, 03:47:09 am »
Hello, Geert,

Again, it seems that your tool is always the solution  :)

I don't have experience dealing with queries.

Where exactly should I add this line? at the end of the query (just copy and paste) or should I delete a line from the query and replace it with this line?

This is what I did...

https://ibb.co/C8HLdpL

But I must have done something wrong because I got an error message

https://ibb.co/MNLTZpw

Thank you!
Mo
« Last Edit: December 29, 2020, 04:58:00 am by Mo »
Thank you to all the contributors who spread their knowledge and experience!

EA_enthusiast

  • EA User
  • **
  • Posts: 172
  • Karma: +0/-0
  • I'm a lifelong learner
    • View Profile
Re: Excel import/export the "Initial Value" field under "Attributes
« Reply #3 on: December 29, 2020, 06:45:21 pm »
I would appreciate the help in editing the export query
Thank you to all the contributors who spread their knowledge and experience!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Excel import/export the "Initial Value" field under "Attributes
« Reply #4 on: December 29, 2020, 11:23:09 pm »
The query is a union between the part for the element, and the part for the attributes.

Both queries should contain the same amount of fields to be unioned.

Add a.Default as InitialValue to the select list of the attribute part, and '' as InitialValue to the select list of the element part.

Geert


EA_enthusiast

  • EA User
  • **
  • Posts: 172
  • Karma: +0/-0
  • I'm a lifelong learner
    • View Profile
Re: Excel import/export the "Initial Value" field under "Attributes
« Reply #5 on: December 30, 2020, 05:16:34 am »
Thank you so much, Geert! It worked  :)

I assume that after exporting, I can update the Excel sheet and add more rows as needed, then import it again.

Thank you very much again!
Mo
Thank you to all the contributors who spread their knowledge and experience!