Book a Demo

Author Topic: Count of Element in List View?  (Read 3929 times)

Rich Anderson

  • EA User
  • **
  • Posts: 142
  • Karma: +8/-0
    • View Profile
    • LinkedIn
Count of Element in List View?
« on: April 05, 2019, 10:07:09 am »
Does anyone know how to get the count of elements in a list view or just get a count of selected elements.   Sometimes I have long list views of many hundreds of elements and I just want a count of the list or the ones selected.  I can't find this anywhere. Does it exist?
Rich Anderson
Urgnt Limited

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Count of Element in List View?
« Reply #1 on: April 05, 2019, 02:40:34 pm »
In most cases you can copy/paste the contents into a text document.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Count of Element in List View?
« Reply #2 on: April 05, 2019, 07:34:04 pm »
Or you implement a SELECT COUNT(*) query.

q.

steen.jensen

  • EA User
  • **
  • Posts: 181
  • Karma: +8/-1
    • View Profile
Re: Count of Element in List View?
« Reply #3 on: April 06, 2019, 03:07:51 am »
Beware that the exempel scripts from SparxSystems does NOT work with elements that are placed under other elements. Only element that have a packet as parent is found.
I made one that counted all element i a selected package (Not List view, sorry) but after a while I understand that there was elements missing in the calulation.

Had to use a SQL-query inside the script. :)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Count of Element in List View?
« Reply #4 on: April 06, 2019, 07:06:33 am »
It depends on the definition. A package with an element that has one nested element only has ONE element, not two.

q.