Author Topic: Fields in Header/Footer in RTF documents  (Read 6534 times)

nestevao

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Fields in Header/Footer in RTF documents
« on: January 25, 2012, 04:55:24 am »
Hi,

Is it possible to insert fields in the header or footer of RTF templates?
How?

Thanks.

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Fields in Header/Footer in RTF documents
« Reply #1 on: January 25, 2012, 06:26:27 am »
It is quite simple

Right-click in your document (or template) and select :
"Edit"

Than select: "Edit page header/footer"

You show also select "view" header/footer"

Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Fields in Header/Footer in RTF documents
« Reply #2 on: January 25, 2012, 09:07:08 pm »
Also, if I remember correctly, if you are using a Master Document/Model Document setup, you need to apply the Header/Footer to the Master Document template if you want the same headers/footers throughout the whole generated document.  

nestevao

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Fields in Header/Footer in RTF documents
« Reply #3 on: January 31, 2012, 04:48:59 am »
Thanks for the replies but I think I was not clear in my question :(

I know how to edit header and footer but I would like to include imported fields from the model.

For instance, I want to include in the header the Package Name
I may include the Package section in the header and then insert the name field but, the section would start and end on the header and no longer be available for the rest of the document. If I include the Package section on the document body, the package section fields aren't available on header/footer.

Thanks

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Fields in Header/Footer in RTF documents
« Reply #4 on: March 06, 2012, 01:53:03 am »
The answer is no. You can't put any model information in hedaer / footer. To solve this issue i put the neccessary information in text in the template so it is generated like <EA Field EA_MODEL_NAME>xxxx<EA Field> and use EA_MODEL_NAME in Header or Footer. After generation of the document i have a word plugin that first searches for EA Field and extract the information to word document information fields and then replace the EA_MODEL_NAME with a filed referencing the informatino field. A little bit complex but if you have developed it once it is very flexible and you can put any information in header and footer.

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Fields in Header/Footer in RTF documents
« Reply #5 on: March 06, 2012, 02:44:48 am »
Quote
The answer is no. You can't put any model information in header / footer....

Well, just to be completely explicit,  you CAN put project constants defined within the EA model into the header or footer,  but other model information is problematic.
« Last Edit: March 06, 2012, 02:45:14 am by Graham_Moir »

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Fields in Header/Footer in RTF documents
« Reply #6 on: March 08, 2012, 01:59:41 am »
Graham you are right but project constants are so general that there use is limited