Adding Button on Applet – Part 2

In part one of this post I have discussed how we can enable a button on applet and call workflow or service from it using scripting.
But Siebel user properties provides us the way to achieve the same behaviour without scripting. There are two or more solutions to it.


Solution 1 : Using CanInvokeMethod User Property
1. Create control on applet with method invoke property set to required method name.
2. Create an applet user property “CanInvokeMethod to activate this button conditionally.
3. Add an “NamedMethod” User Property on BusComp or Applet to invoke Business Service or Workflow of your choice.


Solution 2 : Using EventMethodMethodName User Property
1. Create Control applet with method invoke property as : EventMethodMethodName. Where Method Name is your orignal method.
2. Add “EventMethod Enabled” user property on Buscomp to conditionally activate the button.
3. Create a runtime event on PreInvoke of the Buscomp to invoke service or workflow.


Both of these solutions are suitable for our basic requirement of adding buttons on Siebel Applets. 

Please note that these user properties works on CSSBCBase BusComp class and CSSFrameListBase applet class. These are not defualt classes when you create new objects.

Comments (10)

Loading... Logging you in...
  • Logged in as
I've heard that there is a performance impact of using this method, compared to just leaving the button active and generating an error message if the user presses the button at the wrong time. Obvisouly the error message is worse for usability, but performance is important. Do you agree there is a performance impact for this?
Lee, I think script would create more impact than user properties. As they would require additional resources to execute the script and properties are Siebel's inbuilt.
I personally prefer user properties over script, as they are easy to manage. I havn't come across any disscussion over the peromance imapact due to the properties.
I will post if i found any..

If you have any. please share.
4 replies · active 813 weeks ago
Arifa Sultana's avatar

Arifa Sultana · 813 weeks ago

Hi Tejeshwer, am working on siebel from one year and not much experienced...i like this tip and tried implementing it.

i was trying enable the button based on Condition.Am currrently working on siebel 7.8 application. I have given the Applet User Property as
Name = CanInvokeMethod : MethodName
Value = IIF([Account Promotion Status] <> 'Confirmed','Y','N') ---(Please ignore any syntax error,as i am not directly copying it from tools)

Neither did Solution 2 worked out.. I have taken care of the BusComp and Applet Class.
Please let me know how can i make it work and if it will work for Siebel 7.8.Thanks!
Arifa,
I have tried and tested both the solutions on siebel 7.8 it works fine. you must be doing something wrong, in configuration.
if button is disabled completely, check if you have created named method user property? if it is permanantly active check the syntax of the condition. you can take help of flat tab for this.
I havent given the Named Method Property as i just wanted to see the Button enable/disable based on a Condition.

I will check if i can get these Properties in Flat Tab and Try again.

In the mean time , It will be a great help to me if you can mail me these solutions with some screen shot. I was looking for this from many days as i have a requirement to do this without script.
Thanks in Advance...:-)

will let you know how it goes. Thanks again.
Arifa,
Named Method User property is the most important. This actually makes the button active. Applet user property just make it conditional.

The most i can tell you about this solution is that , it works and works well.

Please share you experiences once you succeed. You free to share anything regarding siebel here, whether it is big or small.
Mail Id : arifa_khan1385@yahoo.co.in
1 reply · active 813 weeks ago
please dont post your email ids on the replies. its for your own good :)
Hi Tejeshwar,

I finally got it..Flat Tab helped to do so...

By mistake,Mail Id which i have given in the blog is no more Active...:)...Thanks again.
I am glad it helped!

Post a new comment

Comments by

Other Siebel Blogs

siebel-admin-l @ IT - toolbox

siebel-dev-l @ IT - toolbox