Book a Demo

Author Topic: How to get TaggedValue assigned to Parameter ?  (Read 5354 times)

Denis S

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to get TaggedValue assigned to Parameter ?
« on: April 10, 2010, 01:07:49 am »
Hi,

Is it possible to get Parameter's TaggedValue via Automation Interface? I do assign tags to params in EA GUI, but don't see them in params (no TaggedValues at all) nor in the parent Method.

Does anyone know how to get them?

Thanks, Denis.

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: How to get TaggedValue assigned to Parameter ?
« Reply #1 on: April 10, 2010, 02:32:22 am »
How are you assigning a TaggedValue to a parameter? Didn't think you could.

Jim

Denis S

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to get TaggedValue assigned to Parameter ?
« Reply #2 on: April 10, 2010, 04:57:39 am »
Hi Jim,

Open Method Properties dialog box, go to the Tagged Values tab. There you'll see root node with method name and all tags assigned to it (accessible via automation). 1 line below there is Parameters node and all method params after it. Select any param and click Add Tagged Value button at the top of tab. When added you'll see the tag right after the param as a child node. So, I assume this means the tag should be assigned to the param.
I also see tags assigned to params in XMI file when I export model to XMI. But I don't see any way to get it via automation. Do you?

Denis.

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: How to get TaggedValue assigned to Parameter ?
« Reply #3 on: April 10, 2010, 12:12:29 pm »
Hadn't really gone down there. Anyway...

You can use the exposed interface to get the Parameter then use Parameter.ParameterGUID to build an SQL query.

select * from t_taggedvalue where elementid=ParameterGUID

As far as I can tell right now the taggedvalues for parameters aren't exposed. Probably doesn't count as a bug but should probably be put on the want list.

Jim

Denis S

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to get TaggedValue assigned to Parameter ?
« Reply #4 on: April 10, 2010, 05:37:31 pm »
Thank you Jim, it works!
Where can I get info on the repository structure: tables, columns etc?

Denis.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to get TaggedValue assigned to Parameter ?
« Reply #5 on: April 12, 2010, 04:25:01 pm »
You can't  :'(

Geert