Using a Script to Set the Admin Mode

You can use the Admin Mode Field user property in a script to determine if a business component is currently in Admin mode. The following example displays Y only if the business component is currently in Admin mode:

function BusComp_NewRecord ()
{
var isAdmin = this.GetFieldValue("IsAdminMode");
var WshShell = COMCreateObject("WScript.Shell");
WshShell.Popup(isAdmin);
}