Book a Demo

Author Topic: InvokeConstructPicker only works for Elements  (Read 20273 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
InvokeConstructPicker only works for Elements
« on: August 30, 2013, 07:40:07 pm »
I finally got around to use the new InvokeConstructPicker operation to select some items for my document generator add-in.

This works fine when selecting elements, and it looks like it works find for Attributes and Operations as well, but sadly the resulting ElementID is always 0.
So although I get the dialog, and the user can select either an operation or an attribute, I have no way of knowing which attribute or operation was selected ::)

May I suggest to change the returntype into the guid? Or may even a list of GUID's to allow for multiple select?

Thanks

Geert

MichPaule

  • EA User
  • **
  • Posts: 70
  • Karma: +0/-0
    • View Profile
Re: InvokeConstructPicker only works for Elements
« Reply #1 on: March 15, 2024, 06:25:05 pm »
I know it is an old topic but nevertheless still relevant.
Please make our scripting life a lot easier by providing a full-grown InvokeConstructPicker capable of:
  • detecting Cancel vs. selection of <none>
  • returning results for all types which could be configured with IncludedTypes=
  • removing the 6 item selection limit
Currently I'm considering to write a replacement from the scratch because of the current limitations - what a shame  :(

Michael
« Last Edit: March 15, 2024, 08:38:40 pm by MichPaule »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: InvokeConstructPicker only works for Elements
« Reply #2 on: March 15, 2024, 06:33:20 pm »
Hi Michael,

If you want Sparx to consider this, you'll have to send in a Feature Request: https://sparxsystems.com/support/forms/feature_request.html

Geert

MichPaule

  • EA User
  • **
  • Posts: 70
  • Karma: +0/-0
    • View Profile
Re: InvokeConstructPicker only works for Elements
« Reply #3 on: March 15, 2024, 07:00:37 pm »
Ok, I was under the impression that this request already has been made several times by the people posting here.
But I'll also write a request. Don't know if it helps as I never got any reaction to it :'(

Michael

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: InvokeConstructPicker only works for Elements
« Reply #4 on: March 15, 2024, 07:17:15 pm »
Ok, I was under the impression that this request already has been made several times by the people posting here.
But I'll also write a request. Don't know if it helps as I never got any reaction to it :'(

Michael
We only know for sure that not sending a feature request doesn't help :)

In the last decade or so I did see some of my feature requests implemented though.

Geert

MichPaule

  • EA User
  • **
  • Posts: 70
  • Karma: +0/-0
    • View Profile
Re: InvokeConstructPicker only works for Elements
« Reply #5 on: March 15, 2024, 08:39:18 pm »
Request sent! ;D