Book a Demo

Author Topic: Create RTF based on search  (Read 4771 times)

natvig

  • EA User
  • **
  • Posts: 65
  • Karma: +7/-0
  • I love YaBB 1G - SP1!
    • View Profile
Create RTF based on search
« on: June 24, 2015, 03:13:56 am »
Hi,

I have created an RTF document based on a predefined search. (Instead of dragging packages onto model documents, a search is defined with a search value in tagged values of the model document.) The search looks like this:

Code: [Select]
SELECT Element.ea_guid AS CLASSGUID, Element.Object_Type AS CLASSTYPE
FROM ((t_object AS Element
LEFT JOIN t_connector AS fp ON Element.Object_ID = fp.End_Object_ID AND fp.Connector_Type = 'Dependency')
LEFT JOIN t_object AS product ON product.Object_ID = fp.Start_Object_ID)
WHERE
Element.Stereotype = 'Function'
AND (fp.Stereotype = 'Performs' OR fp.Stereotype = 'FunctionProvision')
AND product.Object_ID = <Search Term>
ORDER BY Element.Name ASC;

As you can see, only the CLASSGUID and CLASSTYPE are selected. Still EA is capable of reporting on any element attribute as well as any diagram embedded within the element. However, embedded elements are not reported.

Questions:

1. Is there a way to use the embedded elements Section in your RTF template when using RTF searches as a basis for populating the document?
2. EA ignores/overrides the sorting order in my search. Is it possible to make EA honor the search order?

/Hans

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Create RTF based on search
« Reply #1 on: June 25, 2015, 01:19:54 pm »
Hans,

1. It should report embedded elements exactly the same way as if you selected the package an ran the report. If it doesn't then there seems to be a bug that you can report to Sparx.

2.There are some options about sorting on RTF templates (one of them is to sort on element Name). I guess you'll have to use those to control sorting.

Geert