Author Topic: Error in Attribute.Update() if Stereotype >50  (Read 9009 times)

Pavel Bunygin

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Error in Attribute.Update() if Stereotype
« Reply #15 on: October 01, 2013, 05:04:33 pm »
Quote
What you could do is to create that entry in t_xref yourself. Not nice, but EA often forces us to do such ugly things.

q.
Yes, I think it will help as an workaround. But I have to add an entry in t_stereotypes I guess. Is it possible to perform insert in t_xref  with Repository.SQLQuery?

And how I can get primary key (XrefID)?
« Last Edit: October 01, 2013, 05:16:19 pm by PavelBunygin »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Error in Attribute.Update() if Stereotype >50
« Reply #16 on: October 01, 2013, 05:24:25 pm »
I guess the entry in t_stereotypes is not really needed (I'll try later). The primary key in t_xref is any GUID. There are library routines which can create GUIDs. Depends on the language you are using. To add a record use Repository.Execute ("INSERT INTO t_xref (col1, col2...) VALUES (val1, val2)").

q.