Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

ActiveViewName Method


ActiveViewName returns the name of the active view.

Syntax

Application.ActiveViewName

Argument
Description

Not applicable

 

Returns

A string containing the active view name

Usage

Do not use the ActiveViewName method in any event handler that may be initiated by the COM Data Server, COM Data Control, or Java Data Bean.

Used With

Browser Script, Mobile Web Client Automation Server, Server Script

Example

The following example is in Siebel eScript:

function BusComp_PreSetFieldValue (FieldName, FieldValue)
{
   var iReturn = ContinueOperation;
   switch(FieldName)
   {
   case "Name":
   case "Location":
   case "Account Status":
   case "Alias":
   case "City":
   case "Country":
   case "Currency Code":
   case "Current Volume":
   case "DUNS Number":
   case "Expertise":
   case "Freight Terms":
   case "Freight Terms Info":
   case "Home Page":
   case "Industry":
   case "Location":
   case "Main Phone Number":
   case "Main Fax Number":
   case "Sales Rep":
   var sActiveViewName = TheApplication().ActiveViewName();
   if (sActiveViewName == "All Accounts across Organizations")
   {
      TheApplication().RaiseErrorText("You cannot update the " + FieldName +
         " on the " + sActiveViewName + " View");
      iReturn = CancelOperation;
   }
   break;
   }
   return (iReturn);
}

Siebel Object Interfaces Reference