This is nice trick that I came to know recently from Nidhi Puri a friend of mine working in siebel from past 2 years. Till now there were 2 ways known to me to enable a button on an applet in Siebel.
- Scripting at PreCanInvoke event of Applet
- Named Method n User property
But there is another way of enabling the button on applet apart from these two.
Just prefix EventMethod in front of the method name you have given and it will automatically enable the button example
If you create a button and give method name as CopyScript then change it to EventMethodCopyScript it will automatically enable the button. But you need to change the method name at BC level too. So at BC Level the scripting will change to
if(MethodName == “EventMethodCopyScript”)
Nice clean way to enable the button.
Happy Siebel development :)

(4 votes, average: 4.5 out of 5)
14 Comments at "EventMethod – a new way to enable the button."
u mean to say that if we give method name as “Hai” in applet control level then we need to use it as “EventMethodHai” in scripting..is that correct? please be clear…
but i didn’t work for me….My method name was “Remove” and in BC i have given it as
if(MethodName == “EventMethodRemove”)..the button is not activated…did it work for u?
Applet : MethodName
BC Scripting
if your method was Remove then change Applet Method Name as EventMethodRemove
It will activate the button if you have script associated with it then you will need to change the method name in scripting.
Hope that clears how to do it
Thankyou neel it is working fine now…Can u please tell me about the “Named Method n” user property to enable or disable a button..i havenot use that till now..Thanks in advance
[...] a button on applet with method name as “MyMethod” *You can also use technique described in EventMethod Post of renaming method name to EventMethodMyMethod which will help you to eliminate scripting at Applet [...]
[...] is the latest and simplest of all methods to enable the button. You can read in detail in the following post about Event [...]
Neel,
I Just tried, a quick way to make a New Button visible.
I AM HAVING THIS ERROR WHILE I AM LOGGING TO SIEBEL TOOLS USING LOCAL DATABASE
SBL-SEC-10018: You have entered an invalid set of logon parameters. Please type in your logon
parameters again.(SBL-DAT-00446)
Invalid user ID or password
I will suggest you to put the problem in Siebel forum as others might also be able to help you out the link to the forum is
http://forum.siebelunleashed.com
Is this property work on specific version of Siebel Tools or with specific class. I tried but it doesnt work for me.
on which version are you working..
HI, we r woking on Siebel 8.0.1
We have chnaged the font for the whole application from 9 to 11.Now the problem is that the font of View Tabs is also increased and they are not properly visible in UI.Kindly help me in finding out the way?
Hey man this EventMethod is not working for me. I tried it just as R&D for enabling a button but it didn’t work.
There is no script for that button.
Comment Now!