Book a Demo

Author Topic: Get value of inherited tag value in RTF  (Read 5606 times)

spirax

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Get value of inherited tag value in RTF
« on: March 04, 2009, 01:16:32 pm »
Hi all,
Can someone tell me how to get the value of an inherited tag value into an RTF template?

EG. Create an object, add a tagged value.  Now instantiate that object onto a diagram in another package. Create an RTF template to render elements in that package, and try to get the value of the original tagged value.

The 'valueOf' function only appears to work for tagged values belonging to the instance - not those inherited from the original object.

Thanks

markuss

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Get value of inherited tag value in RTF
« Reply #1 on: October 13, 2016, 02:02:02 am »
Hi,

I just stumbled across the same problem - any answer available yet?

Best Regards,

Markus

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Get value of inherited tag value in RTF
« Reply #2 on: October 13, 2016, 09:05:42 am »
I just stumbled across the same problem - any answer available yet?

Element | Inherited Attributes  then as normal

markuss

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Get value of inherited tag value in RTF
« Reply #3 on: October 13, 2016, 07:08:12 pm »
Thank you, Glassboy!

OMG that was so obvious, sorry for that.

However, this way of solving it imposes new problems to my report generation. In my report I have a table that displays the attributes / tagged values of the element (in my case architecture components and tagged values like "Safety Class" or standard attributes like "StereotypeEx"). It shall list the element's values and its inherited values. But I am either in the "element" section or in the "inherited attributes section", I cannot render them both into the same cell.

Anyway, now I know about the possibilites and limitations, so thanks again!

Markus

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Get value of inherited tag value in RTF
« Reply #4 on: October 14, 2016, 07:07:51 am »
However, this way of solving it imposes new problems to my report generation. In my report I have a table that displays the attributes / tagged values of the element (in my case architecture components and tagged values like "Safety Class" or standard attributes like "StereotypeEx"). It shall list the element's values and its inherited values. But I am either in the "element" section or in the "inherited attributes section", I cannot render them both into the same cell.

I generally care that they're inherited so I like the distinction.  And as usual with RTF reports.  If you're serious about presentation, there is always some post processing in Word afterwards.  I'm not sure if your problem can be solved with fragments either.  I've never bothered to get my head around them.