Siebel Developer's Reference > User Properties >

Admin Mode Field


The Admin Mode Field user property provides access to the current value of the business component's Admin Mode Flag.

Although the Admin Mode Flag is a View property, the business component object has a corresponding internal Admin Mode Flag property. At runtime, the business component inherits the value of the Admin Mode Flag from the current view.

In Admin mode, updating, inserting, deleting, and merging records is permitted, independent of those property values on the business component.

For information on Admin Mode functionality, see Security Guide for Siebel Business Applications and Configuring Siebel Business Applications.

Value

The value of the Admin Mode Field user property must be the name of a field on the current business component, not enclosed in quotes. The named field should be an active calculated field of type DTYPE_BOOL with a value of "".

For example, for a given business component, create a calculated field, as described above, and name it IsAdminMode. This is the naming convention for such a field, although the name is not restricted. Add the Admin Mode Field user property on the business component with a value of IsAdminMode.

Usage

This user property is intended for use with script to identify whether a business component is currently in Admin mode. The following simple example displays Y if the business component is currently in Admin mode; otherwise, it displays N.

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

You can inactivate this user property or modify its value. You can create new instances of this user property, but you should not create more than one instance for a business component.

Parent Object Type

Business Component

Functional Area

Scripting

Siebel Developer's Reference