Book a Demo

Author Topic: RFT Export: Filter attributes via Tag  (Read 3587 times)

xabi

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
RFT Export: Filter attributes via Tag
« on: May 19, 2022, 04:05:59 pm »
Hello,

I like to export my EA Model via RTF and I need some help. Maybe somebody of you can give me a hint.

I have a lot of attributes with different tags. I want to export only attributes which contains specific tags. Is that possible?

There is a functionality for features but I can't find it for attributes.

Thanks in advanced and have a nice day

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RFT Export: Filter attributes via Tag
« Reply #1 on: May 19, 2022, 04:16:01 pm »
You can add filters for attributes, but tagged values on attributes are not in the filter list.

So the only alternative is to write an SQL fragment that returns only the attribute details you are interested in.

Geert

xabi

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: RFT Export: Filter attributes via Tag
« Reply #2 on: May 19, 2022, 05:00:16 pm »
Thanks for the reply.

Do you have a kind of prototyp or example for me? Where in the RTF Template I can add SQL

Thanks in advanced

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RFT Export: Filter attributes via Tag
« Reply #3 on: May 19, 2022, 05:11:28 pm »

xabi

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: RFT Export: Filter attributes via Tag
« Reply #4 on: May 19, 2022, 05:41:03 pm »
Thanks have a nice day

xabi

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: RFT Export: Filter attributes via Tag
« Reply #5 on: May 26, 2022, 11:01:03 pm »
Hi Geert,

I downloaded your example but Im not able to make it working. I created a new Template Fragment and I added a "Custom Query". But it doesn't matter what I add all attributes are displayed in the RTF Export.

The Use Case is that I like to export only certain Attributes which contains a tag with the name "Copy Field" / <UML:TaggedValue tag="Copy Field"

I tried the following SQL

select *
from ((((t_object c
inner join t_package  package on c.package_id = package.package_id)
left join t_package  package_p1 on package_p1.package_id = package.parent_id)
left join t_package  package_p2 on package_p2.package_id = package_p1.parent_id)
left join t_package  package_p3 on package_p3.package_id = package_p2.parent_id)
where
c.TaggedValues like 'Copy Field'

By the way where can I test SQL Statements?

Thanks in advanced and have a nice day

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RFT Export: Filter attributes via Tag
« Reply #6 on: May 26, 2022, 11:09:46 pm »
You can execute queries in the SQL Scratch pad in the model search.

I'm not sure what exactly you are looking for, but tagged values on elements are stored in t_objectproperties, and attributes can be found in t_attribute

Geert

xabi

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: RFT Export: Filter attributes via Tag
« Reply #7 on: May 26, 2022, 11:58:21 pm »
Hi Geert,

thanks for your support.  Im really new with Enterprise Architect thanks for the hint with the SQL Scratch Pad.

Every Class e.g. Bug, Requirement (in our context Object/Artefacts) have certrain attributes like ID, Summary, Description and much more.

In our Word Export I want to export only the attributes which contains TaggeValue like CopyField. I cannot use the the Stereotype because Im using it for something else.

Can you please be so kind and help me out with the SQL? That would be really great.

Thanks in advanced and have a nice day



skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: RFT Export: Filter attributes via Tag
« Reply #8 on: June 03, 2022, 01:35:46 pm »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.