Book a Demo

Author Topic: RTF Generation, how to use custom variables?  (Read 2585 times)

lukp

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
RTF Generation, how to use custom variables?
« on: January 27, 2009, 11:06:48 pm »
Hi,
I managed to generate rtf documents using the format I wanted, but I cannot add the info I want to the first page. In the first page I have general information like customer name, project name, distribution list. I would like to add some variables (data fields? tagged values?) to the model and then ask the RTF generator to place the values into the generated document. This way there will be no need to update manually the first page. Do you know how to do this?

Thanks.

bioform

  • EA User
  • **
  • Posts: 230
  • Karma: +0/-0
  • Forty-Two?
    • View Profile
Re: RTF Generation, how to use custom variables?
« Reply #1 on: January 28, 2009, 06:57:08 am »
EA does not appear to allow you to add tagged values to the root, so that option does not loook possible.

You "might" be able to do something with adding your tagged values to "Welcome" package (the first package after the root) and then attach the values to there?

That might require you to have a master (accesses that welcome package) and another "embeded" document that does the rest?

Just starting to explore templates, so I'm not too helpful yet..

David
Time is what keeps everything from happening at once, Space is what keeps it all from happening to you. <unknown>

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: RTF Generation, how to use custom variables?
« Reply #2 on: January 28, 2009, 03:07:45 pm »
There is no specific method availabe for this, however there is a work around:

Use the Virtual Documents (Master Document/ModelDocument) and set up a Model Document - reporting on a Package (i.e. ReportTitles) containing the data you want to use for these title fields.

Note: The Master Document Package does not allow a Package-to-be-reported to be specified. If your reportTitles data is going to be on the first page then it is best that  you just use a series of model documents with the Master Document Package - Tagged Value:RTFTemplate set to blank.

For these fields you can set up Tagged Values in this Package (e.g. Author etc) then use Pacakge.Valueof(Author) to report them.

I hope this is of help.