1
Automation Interface, Add-Ins and Tools / Problem with modifing elements
« on: January 05, 2007, 03:29:26 am »
Hello,
I'm currently working on a synchronization tool between one of our applications and EA. So far everything works fine, I can create new elements in EA with the automation interface and assign values to the various properties.
But changing the values of existing elements doesn't work for some reason.
I'm using Delphi, the routine to change properties looks like this:
tmp:=FRepository.GetElementByID(Element_ID);
tmp.Notes:=NewNotes;
tmp.Update;
If I access the "Notes" property during a debug before I assign the new value, I get the correct text for this element. If I access the property after I assigned the new text (but without leaving this function), I get the new text. But when I load this element again after leaving the function above or starting EA again, the values weren't changed.
Did I forget to run a function? (Save or something similar)
Any ideas?
Thank you,
Andreas Hauser
I'm currently working on a synchronization tool between one of our applications and EA. So far everything works fine, I can create new elements in EA with the automation interface and assign values to the various properties.
But changing the values of existing elements doesn't work for some reason.
I'm using Delphi, the routine to change properties looks like this:
tmp:=FRepository.GetElementByID(Element_ID);
tmp.Notes:=NewNotes;
tmp.Update;
If I access the "Notes" property during a debug before I assign the new value, I get the correct text for this element. If I access the property after I assigned the new text (but without leaving this function), I get the new text. But when I load this element again after leaving the function above or starting EA again, the values weren't changed.
Did I forget to run a function? (Save or something similar)
Any ideas?
Thank you,
Andreas Hauser