Book a Demo

Author Topic: Updating Requirements Status  (Read 4430 times)

jhaydt

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • things that make ya go hmmmm
    • View Profile
Updating Requirements Status
« on: June 14, 2006, 06:16:29 am »
Hi,
I have written a script that updates the t_object.status field via ODBC from an exeternal (to EA) application.  When I do this successfully, however, the display does not correspond to the updated value.  For example: If a requirement object has a Status of "Proposed", and the design has been accepted in our design tracking application, I want to change it the Status to "Accepted".  I use the OBJECT_ID to locate and update the desired STATUS field, and this happens successfully.  When I query the database from SQLPLUS I see the new value in the STATUS field (different session, so I know it is committed and updated in the DB).  When I view the properties dialogue of the requirement, however, I see the status is still showing Proposed.

I am also updating the Version field in this way, and the Version field in the properties dialogue is updated as per the database value.

Is there something more I need to do to get the Status field to update in the properties dialogue, or is this a bug in the UI?

I have even tried refreshing the project, but the Status field in the Properties dialogue remains unchanged while the DB value is still the new value.

Thanks,
Jeff
According to Webster's 1828 dictionary, badgers make great bacon...

thomaskilian

  • Guest
Re: Updating Requirements Status
« Reply #1 on: June 14, 2006, 06:53:32 am »
You probably need to reload the model via File/Reload. EA does not read from the DB every time.

jhaydt

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • things that make ya go hmmmm
    • View Profile
Re: Updating Requirements Status
« Reply #2 on: June 14, 2006, 07:09:20 am »
Thomas, As stated, I reloaded the project and no change occurred.  Here is the SQLPLUS session

SQL> select status from t_object where name like 'BR0394%';

STATUS
--------------------------------------------------
Implemented

SQL>

But the window still shows "Proposed" in the status field.  This is even after restarting EA.

Jeff
According to Webster's 1828 dictionary, badgers make great bacon...

thomaskilian

  • Guest
Re: Updating Requirements Status
« Reply #3 on: June 14, 2006, 09:01:17 am »
I see. But I tried it here and it works. So it is either something trivial or something complicated. Have you checked that EA points to the same repository where you execute your SQL?

jhaydt

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • things that make ya go hmmmm
    • View Profile
Re: Updating Requirements Status
« Reply #4 on: June 14, 2006, 10:45:24 am »
Strange indeed  ???.  I did check to see if the repository was the same, just in case.  When I change the Status via Properties Dialogue, it is updated and the same sql returns the value from the dialogue, so I've checked to make sure I'm updating the right <everything>.  What build and version are you using?
According to Webster's 1828 dictionary, badgers make great bacon...

jhaydt

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • things that make ya go hmmmm
    • View Profile
Re: Updating Requirements Status
« Reply #5 on: June 14, 2006, 10:46:55 am »
Sorry... also would be good to know which DB, and which ODBC driver.  Thanks  ;D
According to Webster's 1828 dictionary, badgers make great bacon...

thomaskilian

  • Guest
Re: Updating Requirements Status
« Reply #6 on: June 14, 2006, 12:37:20 pm »
I'm using 789 with plain EAP files. But I'm sure I've done similar things with other repositories. You're likely using Oracle (hence the antique Plus ;D). Honestly, I'm clueless. Could it be that your ODBC driver behaves strange?

jhaydt

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • things that make ya go hmmmm
    • View Profile
Re: Updating Requirements Status
« Reply #7 on: June 19, 2006, 11:55:42 am »
Solved.  For anyone looking at this thread in the future, you also need to update PDATA1 for Requirements, as the Status, for some reason, is stored here.

Happy coding.
Jeff
According to Webster's 1828 dictionary, badgers make great bacon...