Book a Demo

Author Topic: Obtaining long input  (Read 2890 times)

Rouven

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Obtaining long input
« on: July 07, 2011, 11:48:08 pm »
Hi,

I am currently implementing a half-automated change tracking. As part of this mechanism I automatically create or modify a Change model element.
My initial approach was to use an InputBox to capture the comments for this change. However, I found this value to be cut after 255 characters, which is not all too much when describing a complex change.
While it would compromise my current workflow, I could also do with the actual Properties for the respective element showing automatically in the EA GUI.

Do you
(1) have an idea how I might get input of more than 255 chars?
(2) know how to open the properties/notes for an element from the automation API?

Thanks in advance for any help!

Cheers,
Rouven

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Obtaining long input
« Reply #1 on: July 08, 2011, 04:37:21 pm »
Rouven,

You cannot open the properties dialog of an element from within your add-in.
You can however show your own GUI to allow users to enter data.
I don't know which language you are using, but i'm sure there's plenty of GUI controls you can use that accept more then 255 characters.

Geert

Rouven

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Re: Obtaining long input
« Reply #2 on: July 08, 2011, 05:33:50 pm »
Hi Geert,

well unfortunately I'm not talking about an Add-In but merely the automation scripts. From this technology I do not have any controls available, unless there was something in the Windows API that is usable.

If there isn't then I might actually have to consider an Add-In, which has the unfortunate consequence of requiring an installation in every EA instance, am I correct? Actually I'm looking for something that is an inherent part of the model and thus distributes itself...

Thanks anyway!
Rouven