Altova Authentic 2024 Desktop

Your scripting project may optionally include scripts that handle Authentic Desktop events such as opening, closing, or saving a document, starting or closing Authentic Desktop, adding an element to a diagram, and others. These events are provided by the Authentic Desktop COM API, and you can find them in the "Events" folder of your scripting project. Note that these events are Authentic Desktop-specific, as opposed to form events. Events are organized into folders as follows:

 

Application Events

Document Events

AuthenticView Events

GridView Events

TextView Evets

 

To create an event handler script, right-click an event, and select Open from the context menu (or double-click the event). The event handler script is displayed in the main window, where you can start editing it. For example, the event handler illustrated below displays an alert each time Authentic Desktop starts:

scr_event_authentic

Note the following:

 

The alert command is applicable to JScript. The VBScript equivalent is MsgBox. See also alert.

The name of the event handler function must not be changed; otherwise, the event handler script will not be called.

In order for events to be processed, the Process Events check box must be selected when you enable the scripting project in Authentic Desktop. For more information, see Enabling Scripts and Macros.

 

You can optionally define local variables and helper functions within event handler scripts, for example:

 

var local;
 
function OnInitialize( objApplication )
{
  local = "OnInitialize";
  Helper();
}
 
function Helper()
{
  alert("I'm a helper function for " + local);
}

© 2018-2024 Altova GmbH