Altova Authentic 2022 Desktop

As a simple example of how to automate some tasks, we add a button to the page:


<input type="button" value="Open" onclick="BtnOpen()">

When clicked, a predefined document will be opened in the AuthenticDesktopControl. The MakeAbsolutePath method creates an absolute path using the location of the script as a base path.


function BtnOpen()
  if(strPath.value.length > 0)
    var absolutePath = MakeAbsolutePath(strPath.value);
    var objDoc = objAuthenticDesktopControl.Open(absolutePath);
    if (objDoc == null)
        alert("Unable to locate " + absolutePath + " at: " + objAuthenticDesktopControl.BaseHref);
     alert("Please set path for the document first!");

© 2016-2022 Altova GmbH