Book a Demo

Author Topic: RTF template with condition abilities  (Read 5865 times)

sharon22

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
RTF template with condition abilities
« on: March 02, 2008, 11:33:30 pm »
Hi,
I need to create an RTF template that has the ability to use conditions, for instance, I want to present all elements of type A in one place in the document and all the elements of type B in another place.
Can I do that using the EA RTF tample generator? if not, is there a way to do this?
Any help will be greatly appriciated.
Thanks :)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: RTF template with condition abilities
« Reply #1 on: March 03, 2008, 01:17:13 am »
Some of the time you cannot do this. We've been asking for some kind of filtering for quite some time, but without success as yet.

This tends to show up when you need to filter on the same collection twice. For example, if you want to report all preconditions, then a scenario (or something), followed by the rest of the conditions.

No way...

You can do some filtering, but it is far from universal. So far it is wait and see I'm afraid.

But now is the time to act on this. Submit a feature request - or a bug report; this kind of thing is a common feature and it is not working in EA - to Sparx directly. Use the Report a Bug link below the Support link near the bottom of any forum page.

David
No, you can't have it!

sharon22

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: RTF template with condition abilities
« Reply #2 on: March 03, 2008, 06:45:07 pm »
Thanks David for your reply, but still I need a way to make this scenario happen (and soon).
Can I write an addin or something that extends the abilities of the rtf template editor? is it possible?
Thanks.

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: RTF template with condition abilities
« Reply #3 on: March 03, 2008, 09:46:42 pm »
Quote
Some of the time you cannot do this. We've been asking for some kind of filtering for quite some time, but without success as yet.

7.1 gives you all the ability to do that though not intentionally ;)

Create a master document with two model documents.
You can now either populate both model documents by adding two different search criterias to the model document and run them through the same template.
Or, for a simpler scenario, have two different templates which include/exclude the corresponding types (class, object, states, ...) differently via document option settings.

In both cases the two model documents will be applied on the same model content by treating it differently while generating the docs.

Oliver
« Last Edit: March 04, 2008, 12:56:34 am by ofels »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: RTF template with condition abilities
« Reply #4 on: March 04, 2008, 12:58:00 am »
Very slick Oliver!

I'll give that a whirl next time I need something similar.

I don't think it will work in all situations, but it sure does help for some. I hope this unintentional feature does not get 'corrected' in production.

David
No, you can't have it!

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: RTF template with condition abilities
« Reply #5 on: March 05, 2008, 05:18:48 pm »
Can it document somthing like:
"all objects of type requirement realized by this element"
Meaning this requirements are sitting anywhere in the model, but I need them as list in document under the elements notes and only if they are realized by the spesisfic element.
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: RTF template with condition abilities
« Reply #6 on: March 05, 2008, 07:14:35 pm »
Quote
Can it document somthing like:
"all objects of type requirement realized by this element"
Meaning this requirements are sitting anywhere in the model, but I need them as list in document under the elements notes and only if they are realized by the spesisfic element.

I haven´t tried this myself yet but as you can have model documents populated by search criterias that should not be much of an issue.
This is EA 7.1 of course.

Oliver