IR Framework

GlobalStartup.InputScripts Method

The InputScripts method loads the contents a text file into the objects in the ActiveDocument.
object.InputScripts (InputFileName)

Arguments

object
Required. Always the name of a GlobalStartup object.


InputFileName
Required. The path and file name of the file to read the scripts from.



Remarks

The file format is very specific. It is best to begin by creating the file using the OutputScripts method.
The following example illustrates the use of the InputScripts method.

//	create the name of the text file to load
//	In this case, we make the name of the script file match the name of the
//	Interactive Reporting file.  We also place it in the same folder.
var strTemp = ActiveDocument.Path.reverse();
strTemp = strTemp.substr(strTemp.indexOf(".")).reverse() + "js";

//	load the document's scripts from the text file
ActiveDocument.wsdot_GlobalStartup.InputScripts(strTemp);


Applies To:

GlobalStartup Object



Requirements

The WSDOT Custom Scripts from the script repository must be loaded into the document.