Book a Demo

Author Topic: DiagramLinks collection  (Read 4195 times)

SMaric

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
DiagramLinks collection
« on: November 02, 2011, 06:51:54 am »
Don't know if this is a bug - or more likely my mis-understanding

Javascript code - I was expecting to use the DiagramLinks collection to provide me a list/array of the connector objects on my diagram

I only ever get a zero length list returned


According to the help files --

A DiagramLink is an object that holds display information about a connector between two elements in a specific diagram



My typical scenario --- I have a diagram with several part nodes on it, these have InformationFlow(connectors) between the various parts


Any thoughts ??


Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: DiagramLinks collection
« Reply #1 on: November 02, 2011, 10:02:48 am »
Which version/build number of EA are you running?  (See: Help | About EA)

SMaric

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: DiagramLinks collection
« Reply #2 on: November 02, 2011, 08:09:50 pm »
EA Version is 8.0.859

SMaric

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: DiagramLinks collection
« Reply #3 on: November 03, 2011, 09:57:42 am »
I have just downloaded the latest trial version 9.1.910

and the DiagramLinks collection works as I would expect


Is there a patch/fix/upgrade available for my current version ??

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: DiagramLinks collection
« Reply #4 on: November 03, 2011, 12:48:56 pm »
I recall there being changes made to the behavior of the DiagramLinks collection sometime during EA 8.0.  Previous to that change, the DiagramLinks collection only contained relationships which had local formatting information saved for that diagram.  If the connector did not have any formatting information saved at that time, it would not be in the collection.

If the functionality does not work as expected in EA 8.0.859, unfortunately there is nothing that can be done to change this.

If you need to remain on EA version 8.0 for any reason, we suggest installing EA build 8.0.864 to see if that resolves the problem.
http://www.sparxsystems.com/registered/reg_ea_down.html#PreviousVersions

Otherwise, our only other recommendation is to update to the latest build (9.1.910).