Book a Demo

Author Topic: Table in RTF report -  (Read 3262 times)

speekna

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Table in RTF report -
« on: November 28, 2007, 03:20:47 pm »
Hi everybody...

I searched the user guide & the forum & have been playing with RTF templages - but still have a problem.

I would like to create a simple table in an rtf report with 4 columns -
Column 1 - element name
Column 2 - element Attribute name
Column 3 - element Attribute alias
Column 4 - element Attribute note

The problem seems to be that a table can contain fields for only one kind of section - i.e., either element fields or attribute fields, but not both.

Has anyone done this?  Or can you point me to appropriate help/documentation?

Thanks!

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Table in RTF report -
« Reply #1 on: December 04, 2007, 05:52:14 am »
I don't think this is possible.
But if it were, you would get the same value (for element) repeated for each attribute. Closest you could probably get is to create a single cell table and place the element name in that, then within that table create a new table to hold the attribute data.
Something like....
+----------------------------------------------+
|element>                                      |
|{element.name}                                |
|attribute>                                    |
|                +------------+-------------+  |
|                |{Att.Name}  |{Att.Notes}  |  |
|                +------------+-------------+  |
|<attribute                                    |
|<element                                      |
+----------------------------------------------+

Have a play?

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Table in RTF report -
« Reply #2 on: December 04, 2007, 05:53:03 am »
sorry the formatting got screwed, but hopefully you can see what I mean.

barry_abs

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Table in RTF report -
« Reply #3 on: December 04, 2007, 09:39:41 am »
just took me 40-odd minutes to solve the same problem, but it can be done.

I wanted to embed file>{ElemFile.FilePath}<file inside an element><element section.

I did it like this:
* activate the Element Section
* draw my table within it
* active the File section, add my content (FilePath) inside it
* Highlight and COPY the whole file>*<file section text
* DEACTIVE the File section, removing it from the doc
* position the cursor where the FilePath is required and PASTE

this pastes the markup code where it is required.. hope this helps..

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Table in RTF report -
« Reply #4 on: December 04, 2007, 09:41:25 am »
Thanks Barry,

Lovely solution, and probably 'portable' to other template issues.

David
No, you can't have it!