Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Events >
BusComp_PreQuery
The PreQuery event is called before query execution.
Syntax
BusComp_PreQuery
Returns
ContinueOperation or CancelOperation
Usage
This event may be used to modify the search criteria or to restrict the execution of certain queries.
CancelOperation stops the execution of the underlying Siebel code associated with the event. However, if there is code in the same script following CancelOperation, that code runs regardless of the CancelOperation.
Used With
Server Script
Example
Function BusComp_PreQuery() As Integer
Dim strPosition As String
Dim strSearchSpec As String
Dim intReturn As Integer
intReturn = ContinueOperation
strPosition = theApplication.PositionName
strSearchSpec = Me.GetSearchSpec("Owned By")
If strPosition <> "System Administrator" Then
if Len(strSearchSpec) = 0 or InStr(strSearchSpec,
strPosition) = 0 Then
Me.SetSearchSpec "Owned By", strPosition
end if
End if
BusComp_PreQuery = intReturn
End Function
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |