ActiveViewName Method for an Application
The ActiveViewName method returns the name of the active view.
Format
Application.ActiveViewName
No arguments are available.
Usage
Usage for the ActiveViewName method is very similar to usage for the ActiveBusObject method. For more information, see Usage for the ActiveBusObject Method in ActiveBusObject Method for an Application.
Used With
Browser Script, Mobile Web Client Automation Server, Server Script
Examples
The following example is in Siebel eScript:
function BusComp_PreSetFieldValue (FieldName, FieldValue)
{
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");
}
break;
}
return (ContinueOperation);
}