Book a Demo

Author Topic: Change underlying requirement types  (Read 4014 times)

mark.tootell

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Change underlying requirement types
« on: November 29, 2014, 02:33:28 am »
Hi
I'm writing an add-in which links my requirements tool to EA and was wondering whether there is a way to modify the underlying t_requiretypes table so that I can addition requirement types?
Thanks
Mark

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Change underlying requirement types
« Reply #1 on: November 29, 2014, 04:12:14 am »
Either you do that with a client of your choice or you use Repository.Execute("INSERT...") to do that. Note that though this method is not documented it works and will (most likely) still work in future EA releases.

q.
« Last Edit: November 29, 2014, 04:12:26 am by qwerty »

mark.tootell

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Change underlying requirement types
« Reply #2 on: December 04, 2014, 01:43:05 am »
Thanks Qwerty
Execute() worked but how do I refresh EA without closing the project and then re-opening it?
Mark

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Change underlying requirement types
« Reply #3 on: December 04, 2014, 11:07:18 am »
Try Repository.RefreshModelView (packageID)

if PackageID == 0 it will reload the entire model.

q.

Wade Brooks

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Change underlying requirement types
« Reply #4 on: December 06, 2014, 08:05:51 am »
I had good luck extending the data stored in requirements by creating an extended_requirement MDG.