Book a Demo

Author Topic: rtf reports : Applying a if condition on a field  (Read 4775 times)

Hinnsey

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
rtf reports : Applying a if condition on a field
« on: March 23, 2007, 06:01:50 am »
I totally don't know if it is possible or not...

In rtf reports, I would like to display a field only if its value is equal to a certain string. For exemple, display an Element if its name = "Hello".

It might not be a if condition, it could be also a kind of a filter; anything that allow you to display or not an Element depending on a certain condition, filter and so on.

Thank you and have a nice day!

specious

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: rtf reports : Applying a if condition on a fie
« Reply #1 on: March 29, 2007, 01:17:56 am »
I'd be interested in this too. I'm used to templating languages which have loops, conditionals etc. I thought I'd found the answer in the help, but it turned out that it was code generation templating, not for RTF reports.

For example, just now I'm producing a report that lists out all the connectors in a tabular format, and I have a couple of generalisations of my actors. These show up as blank lines in the table. Although you can suppress anonymous and noteless elements on the generate options, it seems this doesn't apply to connectors.

Some kind of filter would be most welcome.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: rtf reports : Applying a if condition on a fie
« Reply #2 on: March 29, 2007, 02:23:00 am »
This sort of thing has been requested in past, more than once.

There is not much you can do here. If there is an obvious filter in the core product that works for your requirement, you can use it; if not then you are out of luck. At least one of the core filters may be broken (according to a post in the last few hours).

Perhaps Sparx will be adding this sort of thing in the next major release. They've been quiet about new features, so you might just have to wait.

In the meantime you could search for a Suggestions and Requests thread that addresses this and add your support.

David
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: R reports : Applying a if condition on a field
« Reply #3 on: March 29, 2007, 02:24:10 am »
Me too!

The current New generator produces unsuitable output and the Old one won't suppress <anonymous> elements  ::)

We poor users appear to have the worst of both worlds... ???

Conditionals would allow (I hope) correcting the unsuitable output.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Hinnsey

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: rtf reports : Applying a if condition on a fie
« Reply #4 on: March 29, 2007, 03:06:32 am »
 ;) I see that not only it would be a nice to have, but a "must to have".

In our case, we will take a different way to produce reports, maybe something with Crystal Reports by using stored proc directly from the database. It is the easier way we found to customize our reports because with the RTF generator, it seems to be quite "uncustomizable"!  :-/