Book a Demo

Author Topic: ScenarioStep.LinkedElements  (Read 3507 times)

Ian E Mitchell

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
ScenarioStep.LinkedElements
« on: February 28, 2012, 07:18:57 am »
Has anyone managed to make the ScenarioStep.LinkedElement call work? I can get the name of a linked element ok (ScenarioStep.link) but the collection which is supposed to contain the Elements themselves is empty, and occasionally when called, makes EA fall over!
Failing that, does anyone know where Sparx keep the ScenarioStep instances in the database? The Help is unusually silent on which table contains the data.
Thanks
eaDocX - Document Generator for EA -  http://www.eadocx.com

Ian E Mitchell

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: ScenarioStep.LinkedElements
« Reply #1 on: February 29, 2012, 03:07:35 am »
Thanks to Geert, I can now answer my own question.
The ScenarioStep.LinkedElements data is inside the XMLContent column of the t_ObjectScenarios table.
I couldn't see it because I was looking at the database via Access 2007, which for some reason doesn't display the XML which is in the column.
If you want to use the contents of the XML, be prepared for some XML parsing, and for some fragile code, as the structure of the data isn't Sparx's finest hour...
Thanks Geert
eaDocX - Document Generator for EA -  http://www.eadocx.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: ScenarioStep.LinkedElements
« Reply #2 on: February 29, 2012, 05:07:59 pm »
You're welcome Ian  ;)

Geert