Siebel Object Interfaces Reference > Interfaces Reference > Application Events >

Application_PreNavigate Event


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 view

Returns

CancelOperation or ContinueOperation

Used With

Server Script

Example

In the following eScript code sample the script checks for the current business object (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);
}

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.