Book a Demo

Author Topic: Passing a parameter to a Model Document  (Read 3401 times)

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Passing a parameter to a Model Document
« on: January 27, 2010, 01:38:01 pm »
Hi there,
I'm using the virtual documents to generate RTF reports based on diagrams. I have diagrams with several types of elements and I am drawing each type out using a custom search and individual model document.

I am using the same RTF template for each model document and would like to pass a "parameter" in so that a different title could be applied to each virtual section (corresponding to a model document).

Is there a way to do this, or do I need to create a separate template for each "section"?

Cheers,
Andrew.
Regards,
Andrew Warner.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Passing a parameter to a Model Document
« Reply #1 on: January 27, 2010, 03:44:30 pm »
In general this type of thing can be done by using taged Values of the same name in the different Groups you are reporting - e.g. if they are different packages - but reported through the same template - set up the TV's in the packages - set as the same name, but with alternate values - then use these for your different titles using: Package.ValueOf(TVname).

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Passing a parameter to a Model Document
« Reply #2 on: January 27, 2010, 04:58:58 pm »
Thanks Dermot,
I thought about that but I'm not using packages to report on. I'm using the results of searches to return collections of elements and using those searches in model documents.

Is it possible to get a tagged value associated with the Model Document or something along those lines?

Cheers,
Andrew.
Regards,
Andrew Warner.