Siebel Developer's Reference > User Properties > Business Component 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.

CAUTION:  All views and drilldowns contained within a screen that has been granted Admin Mode also behave in Admin Mode because of their subordinate relationship to the screen. This behavior applies even to views where the Admin Mode flag is set to False.

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 Siebel Security Guide 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. Make the named field an active calculated field of type DTYPE_BOOL with a value of "".

For example, for a given business component create a calculated field 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 do not create more than one instance for a business component.

Parent Object Type

Business Component

Functional Area

Scripting

Siebel Developer's Reference Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.