Book a Demo

Author Topic: Script is not able to update Date Created/Modified  (Read 2207 times)

MV

  • EA User
  • **
  • Posts: 65
  • Karma: +1/-0
    • View Profile
Script is not able to update Date Created/Modified
« on: June 09, 2011, 10:13:00 am »
I am using Excel sheet to create requirement within EA. All seems to work fine except EA is not accepting Date fields and putting current date by default.

I have tried to create a requirement manualy and ofcourse EA does not allow changing thse date created / modified from EA interface also.

Though this is exception I need to update these field using script. Any suggestions.

Cheers

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Script is not able to update Date Created/Modi
« Reply #1 on: June 09, 2011, 05:29:38 pm »
Vin,

If EA won't allow you to edit the field using the API you can always edit it directly in the database.
Use Repository.Execute(SQLString) to execute sql update statements to your model.

Geert