Book a Demo

Author Topic: Conditional RTF Generation Possible?  (Read 2749 times)

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Conditional RTF Generation Possible?
« on: October 20, 2005, 02:48:41 am »
Hello everybody,

Sorry I've got another question for you  ::)

Is there a way to generate some rtf fields under certain conditions?

As an example:

If I have a Class with 2 methods, one with arguments called "A" and another without arguments called "B".
MyClass::A(int,int) and MyClass::B()

I would like to generate a title for the arguments only for the method that actually has arguments.

A() method
arguments:
 x : int
 y : int

B() method




Another problem is that I can't put a an element field in the method section like:

Code: [Select]
element >
method >

{Element.Name}::{Meth.Name}() method

< method
<element

This will not generate anything for{Element.Name}


Any help is very much appreciated!!!

thanks in advance,

best regards
Manfred
Best regards,
Manfred

sobedi

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • No comment.
    • View Profile
Re: Conditional RTF Generation Possible?
« Reply #1 on: October 20, 2005, 04:54:32 am »
Thats not a bug, its a feature...

the new rtf editor is a buggy thing since day 1.

In each tag you can only display elements and fields of the  element tag.

You have to do the following:

Code: [Select]

element >
{Element.Name} method >::{Meth.Name}() method
< method
<element


if you're lucky it works,
if not you have to start a new template and start all over again.
Sometimes deleting previous inserted spaces may move element tags...

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Conditional RTF Generation Possible?
« Reply #2 on: October 20, 2005, 05:03:11 am »
hi sobedi,

thanks for your reply, I actually feared that I would have to do something like this... buggy, buggy  ::)

Quote
Thats not a bug, its a feature...

;D I'm more used to hear that from another firm (Micro$oft) they also say "this is by design"... ;)

cheers,
Manfred
Best regards,
Manfred