Book a Demo

Author Topic: What am I doing wrong with the template selector?  (Read 6329 times)

jplusip

  • EA User
  • **
  • Posts: 69
  • Karma: +0/-0
    • View Profile
What am I doing wrong with the template selector?
« on: July 24, 2015, 01:53:19 am »
So, I'm trying to make a template selector so that whenever the document generator hits a property it generates a table with the property's name and any associated requirements.

So I create a template fragment called Property-Req:


Then I create another template fragment called Prop-Req-Selector and went to Document Options and set the query under Template Selector:


I then made a template called testing where I just run the Template Selector:


But the only thing that pops up when I run that is the name of the package (despite a property and satisfied requirement being in the package; also, only one package name runs, so its the one being called in the original template, not the one in the selected fragment).

What am I doing wrong here?


Edit:
These are SysML properties I'm trying to work with. Might that make a difference?  :-/
« Last Edit: July 24, 2015, 01:58:57 am by jplusip »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: What am I doing wrong with the template select
« Reply #1 on: July 24, 2015, 08:22:22 am »
Try replacing Property with Part.

I don't know that's the problem, but internally it should be a Part. (And there is a translation applied for English to use the UML 2.x term instead of the UML 1.x term)
« Last Edit: July 24, 2015, 08:22:43 am by simonm »

jplusip

  • EA User
  • **
  • Posts: 69
  • Karma: +0/-0
    • View Profile
Re: What am I doing wrong with the template select
« Reply #2 on: July 25, 2015, 06:46:16 am »
Tried that. No luck.  :-[

Is there a way I can check what it should be?

Also, does it matter where the referenced fragment is? I tried moving it around some to no avail, but maybe it needs to be in a specific directory? (Guess I could try moving everything over to System).  
« Last Edit: July 25, 2015, 06:49:22 am by jplusip »

Darth Vader

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: What am I doing wrong with the template select
« Reply #3 on: August 12, 2015, 01:03:19 am »
Try to put template fragment call in testing template under <element> section, not under <package>.

Maciou

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: What am I doing wrong with the template selector?
« Reply #4 on: September 04, 2019, 09:30:19 pm »
Hello,

is there even possibility to call template selector i package section? I tried it few times but it never worked - I mean there was no situation where this solution gave me any content.