Author Topic: Re: How to create new Tagged Values?  (Read 7140 times)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8066
  • Karma: +118/-20
    • View Profile
Re: How to create new Tagged Values?
« on: July 11, 2007, 12:59:01 pm »
Your code works just fine for me.

chrvi

  • EA User
  • **
  • Posts: 75
  • Karma: +0/-0
  • There are so many hidden features...
    • View Profile
Re: How to create new Tagged Values?
« Reply #1 on: July 12, 2007, 06:47:12 am »
Oh, I wanted to remove this whole topic (since it was my mistake the code didn't work for me), nevertheless only my original problem text was removed...

So I place it here once again (please note that the code is correct and I was only a stupid user when posting the problem ;-):


Hi,

I'm trying to add new tagged values via automation interface using Java but it seems not to work. Could you please give me a hint?

my code:

Collection<TaggedValue> taggedValues = aElement.GetTaggedValues();
TaggedValue newTaggedValue = taggedValues.AddNew(aNewTaggedValueNameString, "something");
newTaggedValue.SetValue(aValueString);
newTaggedValue.SetNotes(aNotesString);
newTaggedValue.Update();
taggedValues.Refresh();

I fill the newTaggedValue object (a new object in aElement's tagged values collection) with the correct data but in EA I can't see anything in the aElement's tagged values.

Anyway, is there a way to process (read, modify, create) Tagged Value Types? I'd like to add some new via automation but can't find a way to access them.

Thanks in advance for any hint.
« Last Edit: July 13, 2007, 01:33:15 am by chrvi »
Radek

thomaskilian

  • Guest
Re: How to create new Tagged Values?
« Reply #2 on: July 13, 2007, 01:29:38 am »
Never mind - were all stupid sometimes  ;)

It's fine to leave the correct solution here to help others later - when they were stupid.