Book a Demo

Author Topic: Sort order of Scenarios  (Read 4726 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Sort order of Scenarios
« on: June 10, 2015, 11:59:49 pm »
I'm pulling scenario data from the API using EA.Element.scenarios, but there is some data missing, namely the 'Step' indication from the UI.
The UI shows each scenario with the basic path step from which it is called, and a letter (a->z), so that the steps have a predictable sort order in the UI.
Question is, where does that sort order, and the 'step' numbering come from ?
The table t_objectscenarios has a column 'EValue' - even Querty doesn't know what this does, but it may get copied into an attribute called 'scenario.weight', which is sometimes the sort order, and sometimes not.
Can anyone from Sparx tell me where the Step number+letter comes from ?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Sort order of Scenarios
« Reply #1 on: June 11, 2015, 06:58:41 am »
I had a short peek into t_objectscenarios. The scenarios are stored in XMLContent and the level attribute contains the step. So feel free to use the good old SQLQuery and put on the heating for your XML parser.

q.