Different ways of enabling a custom button
Different ways of enabling a custom button
When we add button to a Siebel Applet, by default it is grayed out. We have to make it enable explicitly. The following are the different ways of enabling the custom button.
Named Method n – User Property at Applet Level
1. Select an applet (for example, Account List Applet) and create a control with the following properties.
2. Go to Applet User Properties and create a new record as below.
3. If the Value is TRUE, Siebel CRM enables the method. If the Value if FALSE, Siebel CRM disables the method. We can conditionally enable and disable buttons using this method.
4. Where n (i.e. in Named Method n) is the number that will be one more than the last Named Method user property.
CanInvokeMethod – User Property at Applet Level
5. Repeat the same as given in Step: 1.
6. Go to Applet User Properties and create a new record as below.
7. If the Value is TRUE, Siebel CRM enables the method. If the Value if FALSE, Siebel CRM disables the method. We can conditionally enable and disable buttons using this method.
EventMethod – Applet Level
8. Select an applet (for example, Account List Applet) and create a control with the following properties.
Scripting at Applet PreCanInvoke method –Server Script
9. Add the following script to the Applet PreCanInvoke method.
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if (MethodName == “TEST”)
{
CanInvoke= “TRUE”;
return (CancelOperation);
}
return (ContinueOperation);
}
Named Method n – User Property at Business Component Level
10. Repeat the same as given in Step: 1.
11. Select Business Component user properties (e.g. Account) and create a new record as shown below.
12. If the Value is TRUE, Siebel CRM enables the method. If the Value is FALSE, Siebel CRM disables the method. We can conditionally enable and disable buttons using this method.