Professional Documents
Culture Documents
HOWTO:Enable and Disable Buttons in Siebel 7.x: Edit This Entry
HOWTO:Enable and Disable Buttons in Siebel 7.x: Edit This Entry
Hide TOC
1. Introduction
2. Steps
2.1. Configuration Method
2.1.1. Applet Level
2.1.2. BC Level
2.2. Scripting Method
3. Examples
3.1. Configuration Method
3.1.1. Applet Level
3.1.2. BC Level
3.2. Scripting Method
IntroductionEdit section
There are two methods used to enable or disable buttons. One involves configuration and the
other involves scripting. The complexity of the logic surrounding the button state drives which
approach to take.
StepsEdit section
1. Examine the logic required to enable the button.
1. If the logic is unconditional (for example, always display the My Method button)
then use the configuration method.
2. If the logic is conditional (for example, only enable the Close SR button if all
child activities are Completed) then use the scripting method.
BC LevelEdit section
1. Create a new BC User Property called "Named Method X" where X is a sequential
number (starting from 1).
2. Set the value of this user property to be "MethodName", "INVOKE", "BC",
"MethodName" where MethodName is the name of the method being enabled and BC is
the name of the business component on which it is enabled.
ExamplesEdit section
To enable a button invoking the "MyMethod" method on the Service Request List Applet.
BC LevelEdit section
1. On the Service Request BC create a new User Property called "Named Method 1". Note
that the number 1 represents the appropriate value for the 7.7 Sample database for the
Service Request BC. Ensure that you check the appropriate value for yourself.
o Set the value of this property to "MyMethod", "INVOKE", "Service Request",
"MyMethod".
if(this.BusComp().GetFieldValue("Status")=="Completed")
CanInvoke = "True";
else
CanInvoke = "False";
return(CancelOperation);
break;
default:
return(ContinueOperation);
}
There is one more way to enable the method Methods that use the naming format
EventMethodxxx do not require any applet or business component script to enable the event. for
example, if we set MethodInvoked='EventMethodTestMethod' you need not use a userpropery
}