Book a Demo

Author Topic: How to get the taggedvalues of parameters?  (Read 4779 times)

Thiyagaraj A

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
How to get the taggedvalues of parameters?
« on: February 06, 2008, 11:02:32 pm »
How to get the taggedValues of the parameters? there is no method.Parameters.TaggedValues
Regards,
Thiyagaraj A.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to get the taggedvalues of parameters?
« Reply #1 on: February 07, 2008, 03:17:56 am »
Look in the TaggedValue collection. Find a record with the GUID of your Parameter object, and BaseClass set to OPERATION_PARAMETER.
No, you can't have it!

Thiyagaraj A

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: How to get the taggedvalues of parameters?
« Reply #2 on: February 08, 2008, 01:01:19 am »
Quote
Look in the TaggedValue collection. Find a record with the GUID of your Parameter object, and BaseClass set to OPERATION_PARAMETER.


Hi david,
         I am using APIs for the addIn. i am not able to find the any such OPERATION_PARAMETER. Can u explain me in detail?
Regards,
Thiyagaraj A.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to get the taggedvalues of parameters?
« Reply #3 on: February 08, 2008, 03:44:32 am »
I think you'd have to be reading the database field (in t_taggedvalues) directly to see that value. Some add-ins read the database, so I thought I'd provide that info as well.

I think you just need to look for a tagged value with the owner set to the GUID of your operation. If nothing else works define a search and run it from your add-in.

Let me know if you get it.

David
No, you can't have it!

Thiyagaraj A

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: How to get the taggedvalues of parameters?
« Reply #4 on: February 11, 2008, 02:15:06 am »
Quote
I think you'd have to be reading the database field (in t_taggedvalues) directly to see that value. Some add-ins read the database, so I thought I'd provide that info as well.

I think you just need to look for a tagged value with the owner set to the GUID of your operation. If nothing else works define a search and run it from your add-in.

Let me know if you get it.

David


Hi David,
   Dont mistake me. I am not clear with the concept of reading from the database. Is there any material for reading the values from DataBase?
Regards,
Thiyagaraj A.

thomaskilian

  • Guest
Re: How to get the taggedvalues of parameters?
« Reply #5 on: February 11, 2008, 03:52:28 am »
EA has an underlying database. EAP files are MS Access else you run a SQL repository. Both can be read by simple Select statements. David is talking about tables in these databases. You can always run SQL in parallel to other EA COM API calls. You just have to figure out where your repository is located.

Thiyagaraj A

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: How to get the taggedvalues of parameters?
« Reply #6 on: February 11, 2008, 04:30:24 am »
I got it.
Thanks David, thanks Thomas.

« Last Edit: February 11, 2008, 04:31:22 am by thiyagaraj_a »
Regards,
Thiyagaraj A.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to get the taggedvalues of parameters?
« Reply #7 on: February 11, 2008, 04:41:09 am »
To get you started, open the EA documentation and take a look at the Repository.ConnectionString property.
No, you can't have it!