Author Topic: Retrieving Items in Project Browser Order  (Read 2687 times)

crd

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Retrieving Items in Project Browser Order
« on: April 22, 2010, 04:14:41 am »
Can anyone share with me how to retrieve the information for a package in Project Browser order?  I need to be able to retrieve this information using either the EA API or SQL.

I currently have Level Numbering on for a Package.  I want to be able to retrieve the information as it appears in the Project Browser.

Finally, I can't seem to find where the Level Numbers are stored in the EA tables.  Are they stored?  If so where?

Thanks for any help.
Carol

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Retrieving Items in Project Browser Order
« Reply #1 on: April 22, 2010, 05:40:31 am »
I think the column you search for is called TPos in the t_object table.  

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +564/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Retrieving Items in Project Browser Order
« Reply #2 on: April 22, 2010, 04:37:56 pm »
The level number could be a derived property that is not stored in the database.
I guess you'll have to recalculate it yourself then.

Geert

beginner

  • Guest
Re: Retrieving Items in Project Browser Order
« Reply #3 on: April 22, 2010, 07:04:03 pm »
The order in the project browser is a complicated mixture of tree_pos/t_pos, type and alphabetic sorting. I have my boiler plate code in Perl to get it right where needed. Took me quite some time to figure it out.

b.