Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: asseco on September 07, 2011, 07:07:04 pm
-
I want to write script like "Searching element by guid" so I need geting guid from user.
Is there any method to geting data from user using scripting (JScript)
or maybe other solutions to search EA repository by guid.
-
To obtain data from user use JScript code below:
function input_dialog(promptText, title, defaultText)
{
var window = new ActiveXObject("ScriptControl");
window.Language = "VBScript";
promptText = "Text";
title = "Title";
defaultText = "Data From User";
output = window.eval ( "InputBox(\"" + promptText + "\",\"" + title +
"\",\"" + defaultText + "\")");
}
input_dialog();
-
Clear and simple. It works. Thx