Book a Demo

Author Topic: Scripting: How to access XREF trigger -> signal?  (Read 3520 times)

M3SYSTEMS

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Scripting: How to access XREF trigger -> signal?
« on: April 23, 2013, 12:42:23 am »
Hi all,

I fully use scripting capacities to manage the content of EA models.
I would like to access to the specification attribute (signal element) of a trigger event element by using a java script.
I didn't find any solution by using the repository class or element class?
A priori, the link between the trigger event and his specification (the signal element) is recorded into a specific XREF Table.

Any idea?
Thanks a lot!

Olivier

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Scripting: How to access XREF trigger -> signa
« Reply #1 on: April 23, 2013, 01:42:17 am »
You must query the t_xref table. Client = Guid of trigger. Then examine the column Description: RefGUID=<guid of signal>;

q.

M3SYSTEMS

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Scripting: How to access XREF trigger -> signa
« Reply #2 on: April 23, 2013, 02:56:27 am »
Thanks for your quick response  :)

Is-it possible to query this table from a javascript or VB script?
Any example?


Thanks!

Olivier

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Scripting: How to access XREF trigger -> signa
« Reply #3 on: April 23, 2013, 05:03:35 am »
Sure. Use Repositor.SQLQuery ("SELECT * FROM t_xref WHERE..."). It returns a XML-formatted string.

q.

M3SYSTEMS

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Scripting: How to access XREF trigger -> signa
« Reply #4 on: April 23, 2013, 06:37:35 pm »
Thanks!  :)