Book a Demo

Author Topic: Constraint is not updating in element constraint dropdown.  (Read 3394 times)

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Constraint is not updating in element constraint dropdown.
« on: February 20, 2020, 07:04:19 pm »
Hi,

I am trying to add constraint type using the script, With the help of below code -
var data ="Insert into t_constrainttypes (Constraint, Description, Notes) Values('Constraint Name','Constraint Description','Constraint Notes')";
Repository.Execute(data);
I had successfully added the constraint type and we can able to see in General Types-> constraint types Wizard, But it is not showing in the element properties-> constraint -> Type.

Thank you :)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Constraint is not updating in element constraint dropdown.
« Reply #1 on: February 20, 2020, 07:43:32 pm »
You might need to reload the model before it notices a change like this.

Geert

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Constraint is not updating in element constraint dropdown.
« Reply #2 on: February 20, 2020, 08:01:11 pm »
Hi,

Thanks for the reply.

I reloaded, same issue continues. Can you suggest me any other way or any other script?





Arshad

  • EA User
  • **
  • Posts: 291
  • Karma: +21/-1
    • View Profile
Re: Constraint is not updating in element constraint dropdown.
« Reply #3 on: February 20, 2020, 08:20:45 pm »
Reloading the model doesn't help. Instead, try closing the EA Application and reopen it.
The Added values from the script will be reflected.

HTH
Arshad

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Constraint is not updating in element constraint dropdown.
« Reply #4 on: February 20, 2020, 08:35:41 pm »
Hi,

Thank you so much for the help it is working properly after I restarted EA.