Configuration Guidelines > Development Standards for Siebel Script Languages and Object Interfaces > Script Guidelines >

Server Script and Object Interfaces


For more information on eScript error handling, see Siebel eScript Language Reference. For more information on Siebel Visual Basic error handling, see Siebel VB Language Reference.

{

if (MethodName == "My Method")

{

// Set Id field to string

var oBC = this.BusComp();

var sId = oBC.GetFieldValue("Id");

//Check value of field Id for current bus comp

if (sId=="")

{

// if this is true there are no records in applet. Do not invoke the button return (CancelOperation);

oBC = null;

}

else

{

CanInvoke = "TRUE";

return(CancelOperation);

}

}

else

return (ContinueOperation);

}

For more information about the WebApplet_PreCanInvokeMethod event, see Siebel Object Interfaces Reference.


 Configuration Guidelines 
 Published: 18 April 2003