Book a Demo

Author Topic: Setting Values for Read Only Attributes?  (Read 3422 times)

Chris Allport

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Setting Values for Read Only Attributes?
« on: September 12, 2013, 05:08:44 am »
In our model, we have adopted the convention of adding Hyperlinks to other diagrams to facilitate navigation.  Now, I am trying to automate this process.

Thanks to this thread (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1373982154), I was able to figure out how to do it in Python.  Repository.Execute(...) did the trick.

However, I am trying to implement the script inside of EA using JScript.  Execute is not available via Repository.  And SQLQuery seems to be limited to queries only.

Any ideas?  Thanks in advance!

Chris


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Setting Values for Read Only Attributes?
« Reply #1 on: September 12, 2013, 05:49:45 am »
The auto-complete does not suggest .Execute because it is an undocumented function. Simply type it by hand and it will work.

q.

Chris Allport

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Setting Values for Read Only Attributes?
« Reply #2 on: September 12, 2013, 06:10:26 am »
Wow.  Thanks!

I did try that and, for some reason, it didn't seem to work.  I just tried it again and bingo.

Thanks again!

Chris