Configuring Siebel eBusiness Applications > Configuring Applets > About Applet Controls and List Columns >

Button Controls


Button controls are 3-d buttons that initiate an action when clicked. These type of buttons are rarely used in the application. The more common type of button is minibutton. See MiniButtons.

When rendered in high interactivity mode, a button can invoke a built-in method (supplied with Siebel applications), or a custom method programmed in Siebel VB, Siebel eScript, or Browser Script.

The Method Invoked property is the name of the method invoked when the button control is clicked.

There are instances when you might want to put your own custom methods in the Method Invoked property. For example, this is the only way to invoke Siebel VB, Siebel eScript, or Browser Script on a button-click event.

NOTE:  The Runtime property must be set to TRUE for button controls. Otherwise the method associated with it will not execute.

To enable a button the WebApplet_PreCanInvokeMethod event must be scripted to set its CanInvoke parameter to TRUE.

eScript example:

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)

{

if( MethodName == "Map" ) {

CanInvoke = "TRUE";

return( CancelOperation );

}else {

return (ContinueOperation);

}

}

Configuring Siebel eBusiness Applications