Book a Demo

Author Topic: Inserting document author in RTF  (Read 9220 times)

marcel_str

  • EA User
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Inserting document author in RTF
« on: July 08, 2008, 06:46:01 pm »
What I want to do is probably quite simple, but I can't find a solution.

I'm trying to simply add an author to a small summary on the front page of an RTF document. Though you can assign an author to a package in EA, it wont let you insert it in the package filed in the RTF templates (rightclick between the package-identifiers and note no author there).

I also tried inserting field names, but I don't really know where in the model they get there data from.

How should I do this? It can't be that hard...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Inserting document author in RTF
« Reply #1 on: July 09, 2008, 08:23:45 am »
You can get the package author from package.element.

marcel_str

  • EA User
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Inserting document author in RTF
« Reply #2 on: July 14, 2008, 06:14:15 pm »
Thanks for your reply.

This indeed generates an author for every element in the model. But if I use this to create a table with document properties (on the frontpage) on a model which has more then 1 element, I get an equal amount of tables with element properties instead of information like user/date/author etc. of the document itself. Which is a little too much information on the front page...

Correct me if I'm wrong, but isn't inserting a field a way to do it? Say that I declare a field named: "documentauthor" in the template and initialise this field somewhere in the model, it should do what I expect it to do... If this is a proper way to do it, then how do I initialise these fields(declared in the document template) in the model?
« Last Edit: July 14, 2008, 07:18:29 pm by marcelstr »

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Inserting document author in RTF
« Reply #3 on: July 15, 2008, 12:14:40 pm »
Authors are set for creators of packages - but not for the creator of a document template or a the person who runs a report.  So it is best if you want to report the creator of a report template - actualy place the author name in the template.
« Last Edit: July 15, 2008, 12:15:28 pm by Dermot »

marcel_str

  • EA User
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Inserting document author in RTF
« Reply #4 on: July 15, 2008, 06:42:49 pm »
That also will not satisfy, because the person who makes a document will vary. So in order to have the correct name on the document then, users of EA have to alter the template (which I very much would like to avoid, and therefor would like to use a template), or, in case this name is fixed by the template creator, there is the template creators name on a document he is not responsible for.

So still I am looking for a way to set something like a field or entry somewhere in the model which can be used to define a document author. Something like microsoft words' fields functionality.
For instance... A model has an owner... Then why shouldn't I be able to show this field in the rtf document?

« Last Edit: July 15, 2008, 06:44:39 pm by marcelstr »

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Inserting document author in RTF
« Reply #5 on: July 15, 2008, 07:01:12 pm »
Quote
So still I am looking for a way to set something like a field or entry somewhere in the model which can be used to define a document author. Something like microsoft words' fields functionality.
For instance... A model has an owner... Then why shouldn't I be able to show this field in the rtf document?

I totally agree here. Same for the document name, document type, document specific header information, etc.

AFAIK it is still not possible to have a generic template for several projects which can set the document title at the front page by defining some fields or whatever. If I want this I have to go the master document way of importing reports into an existing templates. However this is still broken when using bookmarks (build 830 and 831) so at least for me it is unusable actually.

Oliver

friehmaen

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Inserting document author in RTF
« Reply #6 on: December 10, 2008, 01:44:58 am »
Hi,

are there some changes/news concerning this issue in the latest EA Releases?

Thanks and regards,
khr

Thelonius

  • EA User
  • **
  • Posts: 274
  • Karma: +6/-0
  • I think. Therefore I get paid.
    • View Profile
Re: Inserting document author in RTF
« Reply #7 on: December 10, 2008, 07:03:43 am »
I concur with the above views.

Document management (having appropriate 'traceability' information captured in the MS Word documents that support the EA artefacts) is really important to me right now.

Customer doesn't even put page numbers on documents.

And 'date' is always 'system date' - never the date the document was originally published. >:(

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Inserting document author in RTF
« Reply #8 on: December 10, 2008, 02:57:30 pm »
marcel_str wrote on Jul 15th, 2008, 8:42am:
So still I am looking for a way to set something like a field or entry somewhere in the model which can be used to define a document author. Something like microsoft words' fields functionality.
For instance... A model has an owner... Then why shouldn't I be able to show this field in the rtf document?

DOB ==>
This has been posted as a Feature Request - however users postings do help (!)
A couple of tricks you can look at are:
a) Set up Tagged Values in a Package - i.e. with the TVAuthor etc. and use the Package.ValueOf(TVAuthor) to display these - use a Master Document to place this at the top of the document.  You can then set up seperate packages for users needing this facility - with their TV's preset.
b) Look at using the Language translation in the RTF reports:
 - i.e. don't use the string  "Author" in the template - use "Wriiten By:" and use the langauge translation to for AUTHOR - to the Authors name.  You would need to have the Package.Author = "Author"


Richard Blank

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • Richard Blank
    • View Profile
Re: Inserting document author in RTF
« Reply #9 on: December 12, 2008, 02:10:17 pm »
Thank you for the information. Solid customer service here.


Richard



.
Richard Blank
CEO
Costa Rica’s Call Center
[email protected]
http://www.costaricascallcenter.com
888-271-6750

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Inserting document author in RTF
« Reply #10 on: December 13, 2008, 04:06:33 am »
Particularly when you consider that this is a user forum. As you can see, the Sparxians are pretty active here too.
No, you can't have it!

Paul W

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Inserting document author in RTF
« Reply #11 on: December 16, 2008, 10:28:01 pm »
But as all these appear as document properties, wouldn't it be nice to be able to insert document property fields into the template.
If going this far then it would also be great if we could set a template file (as .dot) for templates.
Then could change fonts/paragraph styles for numerous rtf templates quickly

David

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Inserting document author in RTF
« Reply #12 on: December 17, 2008, 12:08:38 am »
It would also be nice if it was possible to add output path/file name, status (i.e draft) into the header/footer areas of a RTF template without hard coding.

regards

David J

cweng

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Inserting document author in RTF
« Reply #13 on: December 31, 2008, 01:37:49 pm »
I have a way of generating a front page of a document that can display name, author, version, status etc. for the document. I do it using virtual documents, as follows.
    [1] I have a package containing the virtual document and I name this package with the title I want for the document. I have at least two model documents in the virtual document.

    [2] The first is the document front page. I set the package for this model document to be the virtual document package. In the template for this I layout the front page, with company logos etc. I can then report on the elements of this package on the front page, such as name, author, version, status etc. I also define the header and footer in here. The template is reusable across all documents.

    [3] The second model document can contain the body of the report. However, I often have several sections with differing templates if I want to treat diagrams differently in different sections, for example.

    [4] To manage this, I have a common second model document and template that generates the table of contents and a glossary. There is a restriction that the document generating the TOC must have at least one header in it, so putting a corporate glossary in this section solves this.

    [5] The rest of the document is then done in separate model documents, depending on the template I want to use for each section.
As an aside, I have identified an apparent bug in that subsequent header levels after the TOC are all generated one level too low. This has been raised and accepted as a bug with Sparx.

Hope this helps.
« Last Edit: December 31, 2008, 01:38:29 pm by cweng »

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Inserting document author in RTF
« Reply #14 on: January 05, 2009, 07:44:04 pm »
Quote
I have a way of generating a front page of a document that can display name, author, version, status etc. for the document. I do it using virtual documents, as follows.

This is the way I am doing it, too.
However for certain views it is not often convenient to use virtual documents- eg. if you have project reports for different parts of the model you would like to quickly generate (the "hey, I want to have a report for this area, can you give it to me in 10 minutes?" document type) which are at least throwaway documents but as they go to different stakeholders (customers, QM, management, tbc) they have to be in corporate style.
For those documents it is cumbersome to create dozens of virtual documents. I have been experimenting with using the search function to fill the virtuals thus having a generic virtual document but this was not very satisfying until now- it lacks a recursive option ("find all elements matching the search criteria and everything below in the model)".

Oliver