Book a Demo

Author Topic: prompt for input in scripts  (Read 4501 times)

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
prompt for input in scripts
« on: February 12, 2010, 02:36:43 pm »
Hi there,
sorry if this is a brain-dead question but I can't figure out how to prompt for user input in scripts, particularly javascript.

The normal javascript "prompt(string, string)" function doesn't work when I run it and I would dearly love to get some user input to run scripts to effect batch changes in the repository. For example, if I have a stereotype and want to change all elements with that stereotype to a different stereotype.

The Session.Prompt shows promise but only seems to allow the choice of buttons and is not documented. Perhaps it's a windows object, rather than an EA one.

Cheers,
Andrew.
Regards,
Andrew Warner.

Shawn Stepper

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: prompt for input in scripts
« Reply #1 on: February 13, 2010, 11:04:16 am »
I use Internet Explorer (scripted from in EA) to present forms to the user and solicit input.

I can't contribute to the community site yet, so check out my script here:

http://shawnstepper.com/wiki/display/Portfolio/Script+-+Set+Status

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: prompt for input in scripts
« Reply #2 on: February 15, 2010, 08:52:51 am »
Thanks Shawn,
that's wonderful. I'd completely forgotten about the COM interface!

Cheers,
Andrew.
Regards,
Andrew Warner.