Author Topic: Access to "Binding->parameter substitution" in connector properties via JScript  (Read 3281 times)

fp123

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Hello,

i've got two classes which are connected by a Template-Binding connector. In the Properties of this connector, there is the tab "Binding", where i added some "parameter substitutions".

I need these parameter substitutions from the connector. I've tried to get access to that via JScript, but i don't find the right keyword of the connector class.

I've tried several connector attributes but could not find the right one to get the information I need.
Does anyone know which attribute i have to read from the connector get the binding?

The connection between the classes is made like shown in this tutorial:
https://www.sparxsystems.com/enterprise_architect_user_guide/13.0/model_domains/template_binding.html
« Last Edit: August 27, 2018, 11:29:37 pm by fp123 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Hi,

I don't know that specific one, but you can usually figure it out by checking the database.
If you know where EA stores it in the database then you can often figure out how to access it using the API.
Sometimes exotic things like this are not directly exposes in the API. In that case you can use Repository.SQLQuery to get the info from the database directly.

If you have a model on SQL server then the SQL profiler can be a very useful tool in figuring out where EA stores stuff.

If I would need to guess I would bet that you will find it in t_xref and that it is not exposed by the API.

Geert

fp123

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Hi Geert, thank's for the hint to that table. I'll take a look at it.

Unfortunately it seems like I am the only one who wants to get this specific parameters via script ;)