Book a Demo

Author Topic: Document generation tables and selectors  (Read 7762 times)

GrahamH

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Document generation tables and selectors
« on: September 21, 2016, 06:46:16 pm »
Hi I'm having a bit of an issue using selectors and tables together, as the header row is getting repeated if I use a selector.

I've a package with two sub-packages, one containing use-cases the other containing the actors.  I want to have a one table listing all the actors and some of their properties, and another listing all the use-cases and some of their properties.

If I use a selector to chose a different fragment based on the type of element the header row gets repeated for each element.  If I place the table where the selector goes this works as per the documentation and the header table only shows up once. 

ActorType
CSRTeam
ActorType
CSR SupervisorManagement

Whilst I get (or I think I do) why this is happening, is there any way around this?

regards

Graham

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Document generation tables and selectors
« Reply #1 on: September 21, 2016, 08:56:50 pm »
There was a trick that Phil showed us in London.
I consisted of adding an empty field (keywords or something) to the header row which made it not repeat itself anymore.

The "proper" way should be to mark your row as being a header row, but apparently that sometimes doesn't work as expected.

Geert

GrahamH

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Document generation tables and selectors
« Reply #2 on: September 22, 2016, 12:10:10 am »
Did you mean something like this?

package >
element >
Actor  {Element.Keywords}   Type  (header row set)
{Element.Name}   {Element.StereotypeEx}
< element
< package

GrahamH

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Document generation tables and selectors
« Reply #3 on: September 22, 2016, 01:06:43 am »
Meant to add, though it's probably obvious, this didn't work for me  :(

GrahamH

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Document generation tables and selectors
« Reply #4 on: September 29, 2016, 09:20:23 pm »
Raised as a ticket and it seems there's no way around this.

Saying that, EADocx can do this, but was hoping that the native capability would as well.

regards

Graham

Maciou

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Document generation tables and selectors
« Reply #5 on: September 04, 2019, 09:22:37 pm »
Hello,

I have the same problem. When I contacted Sparx Support I was told to call Template selector from Package section - but it make things worse - there's no content at all.
Maybe somebody found a walkaround during this three years? ;)