Author Topic: EA16 JavaScript DLGInputBox bug  (Read 46 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1103
  • Karma: +34/-2
    • View Profile
    • www.umlchannel.com
EA16 JavaScript DLGInputBox bug
« on: January 20, 2022, 02:48:37 am »
Hi,

I'm using Javascript to define EA scripts and I need to prompt a value from the user. Using EA 16 new libraries (EAScriptLib.JavaScript-Dialog), I tried the following:

var userInput = DLGInputBox("Question","Title","Default");

Unfortunately I'm getting a vbe.eval is not a function error.
Is there a workaround ? Note that Session.Input works but it doesn't let me specify a default value.

thanks
« Last Edit: January 20, 2022, 02:58:28 am by Guillaume »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com