Siebel Developer's Reference > Business Component User Properties > Controlling Records >

Allowing Administrators to Modify Records


The Admin Mode Field user property determines whether a business component is currently in Admin mode. It allows an administrator to delete, insert, merge, or update records regardless of how you set the following business component properties:

  • No Delete
  • No Insert
  • No Merge
  • No Update

Siebel CRM typically sets the Admin Mode Flag property of an administrative view to TRUE to allow an administrator to configure Siebel CRM to do these operations regardless of how you set these properties.

Requirements for Using Admin Mode

If you set the Admin NoDelete user property on a business component, then Siebel CRM cannot delete records in any view that references this business component. This situation also applies for the Admin NoUpdate user property. For more information about Admin Mode, see Siebel Security Guide and Configuring Siebel Business Applications.

The value for this user property must contain the name of a field, not enclosed in quotes. This field must possess the following characteristics:

  • Reside in the current business component
  • Active
  • Calculated
  • Of type DTYPE_BOOL
  • Contain a value of ""

Siebel CRM uses the value of the Admin Mode Flag property of the current view to determine the business component behavior at runtime. For example, assume you create a calculated business component field and name it IsAdminMode. It is recommended that you use this naming format, but it is not required. You add the Admin Mode Field user property with a value of IsAdminMode to the business component.

CAUTION:  All views and drilldowns that a screen contains that are enabled for Admin Mode also work in Admin Mode because of their subordinate relationship to the screen. This behavior applies even if you set the Admin Mode Flag property of a view to False.

You can configure Siebel CRM to modify the value for this user property, deactivate it, or create a new instance of it, but no more than one instance for each business component.

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);
}

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