Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Application Events >
Application_PreNavigate
The Application_PreNavigate event is called before the client navigates to a view.
Syntax
Application_PreNavigate(DestViewName, DestBusObjName As String) As Integer
Argument Description DestViewName Name of the View to which the user is navigating DestBusObjName Business object of the destination viewReturns
CancelOperation or ContinueOperation
Used With
Server Script
Example
In the following code sample the script checks for the current BO (contact) and sets the current contact id as global variable (can be used for keeping context).
function Application_PreNavigate (DestViewName, DestBusObjName)
{
try
{
var currentView = this.ActiveViewName();
var BO = this.ActiveBusObject();
if(BO.Name() == "Contact")
{
var BC = BO.GetBusComp("Contact");
var id = BC.GetFieldValue("Id");
TheApplication().SetSharedGlobal("ContactId", id);
}
}
catch (e)
{
this.Trace("Exception caught: "+e.toString());
}
return (ContinueOperation);
}
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |