Anybody know how to get access to global intrinsic objects in netview?
I can get reference to XSIFactory and Application just fine, but when I use the
same technique to get a reference to XSIUtils, XSIMath, or any of the other
global objects, netview throws errors.
try {
var oXSIFactory = new ActiveXObject( "XSI.Factory" );
// OK
var Application = oXSIFactory.CreateActiveXObject(
"XSI.Application" ); // OK
var XSIMath = oXSIFactory.CreateActiveXObject(
"XSI.XSIMath" ); // fail
var XSIUtils = oXSIFactory.CreateActiveXObject(
"XSI.XSIUtils" ); // fail
} catch(e) {
// Cannot access XSI, we're not running in Netview.
Application.LogMessage( e.description );
var Application = null;
}
// throws error:
Application.LogMessage( "'" + XSIUtils.Slash + "'" );
Thanks,
Matt