Author Topic: Is it possible to run a script on the selection in a List View window?  (Read 336 times)

andy__d

  • EA Novice
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
To automate repetitive tasks, we use a lot of project browser scripts and model search scripts, so users can select one or more items, right click and select Specialize->Scripts->(script name) to perform the task. We're expanding our user base to include users without SQL query authoring skills, but need to view lists of elements based on tagged values. Viewing a package in List View and adding tagged value columns is a good alternative to SQL queries for these users: but, I've not been able to figure out a way to execute scripts based on the users' selection in list view, as there's no "Specialize" option on the context menu, and does not appear to be a script group type that correlates to List View. Is there a way to add scripts to list views?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12995
  • Karma: +544/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Have you tried an Element Group? That works for me.

Geert

andy__d

  • EA Novice
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Perfect! Thank you very much Geert, I wasn't aware of an Element Group type, as I'd been looking just at the list of group types available in the New Group drop down (but found this in the group properties, thanks to your suggestion). That's giving me exactly what I needed, thanks very much!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12995
  • Karma: +544/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Perfect! Thank you very much Geert, I wasn't aware of an Element Group type, as I'd been looking just at the list of group types available in the New Group drop down (but found this in the group properties, thanks to your suggestion). That's giving me exactly what I needed, thanks very much!
Yeah, you would think that the new group dropdown would contain all group types, wouldn't you ;D

But nope, gotta keep some mysteries for the masses

Geert