Siebel: Adding Button on Applet - Part 1

This is one of the basic thing that we do in our siebel application. And every developer prefer his own way of configuring it.

From my past experience there are two basic requirement for custom buttons :
1. It should invoke a Workflow or Business Service.
2. It should become Active/Inactive  based on certain condition.

Based on these requirements first solution that come to our mind is with a script in Pre_CanInvoke of applet, but there are lot more options available in Siebel for this requirement.

First lets see how a scripting can solve this problem

Solution1: Scripting Applet and BC
1. Create Control in Form or List Applet, Set its method invoke to name of the method.
2. Place it on the web layout of applet.
3. Write following script on applet pre can invoke event:



4. Write the actual code to call service or workflow in Applet pre invoke or BusComp PreInvoke.


This trick work always irrespective of the application or interactivity of the application or the applet type.

But there are options available in Siebel that can be used to  achieve this functionality without use of scripting. We will examine other options in my next post!

Comments (4)

Loading... Logging you in...
  • Logged in as
Still looking for that next post!! :-)
Second part of this post is now online.

Feel free to add anything to it.
Can you explain how to invoke that button through scripting.

Thanks
Satya.
1 reply · active 807 weeks ago
Satya, Button are just UI elements that helps us to invoke the underlying script/method on the applet or the buscomp. I think you are asking how to invoke functionality of the button through scripting?
In script you can directly invoke the method by object.InvokeMethod("MethodName") command.

Post a new comment

Comments by

Other Siebel Blogs

siebel-admin-l @ IT - toolbox

siebel-dev-l @ IT - toolbox