How to Invoke Business service on a click of a button?
This a very commonly asked question in Siebel technical interviews. Let discuss this.
Question: In an Applet we have a Button When we click on that Button we need to get an Business service. How we are going to do it?
Answer : Response are welcome from readers and will be concluded on 30th Dec 2009.
Note: Siebel expert panel will provide input in between the discussion if required.
Related posts:
- Is it possible to update a joined field ?
- Siebel Business Service – Complete Reference
- Invoking Siebel Business Service Using Workflow
- Invoking Siebel Business Service Using RunTime Events
- Invoking Siebel Business Service Using eScript
- Configure a VBC to invoke an EAI Workflow without scripting

















(2 votes, average: 5.00 out of 5)
We can invoke Business service using Named Method.
Hi ,
steps :
1.Create a button Control with Method : Click
2.Use Applet control use Property CanInvoke:Click = ‘TRUE’
3.Use Named Method on underline BC and invoke BS/WF
*if you have some logic o button enable then use precaninvoke event.
There are couple of options to do this.
1. You can use a Named method at the BC level to do it
2. You can write custom scripts to invoke the BS
Hi Freinds
I am providing some code as Example for above issue. I think this may helpful.
Function WebApplet_PreCanInvokeMethod(MethodName, &CanInvoke)
{
if (MethodName == “btnUpdateStatus”)
{
CanInvoke = “TRUE”;
return (CancelOperation);
}
}
Function WebApplet_PreInvokeMethod(MethodName)
{
if (MethodName == “btnUpdateStatus”)
{
var oBS = TheApplication().GetService(“Workflow Process Manager”);
var ipPS = TheApplication().NewPropertySet();
var opPS = TheApplication().NewPropertySet();
ipPS.SetProperty(“ProcessName”,”Test WF1″);
ipPS.SetProperty(“RowId”,this.BusComp().GetFieldValue(“Id”));
oBS.InvokeMethod(“RunProcess”,ipPS,opPS);
this.BusComp(“RefreshBusComp”);
return (CancelOperation);
}
}
Thanks Satish for valuable example.
It better use try and catch block.
Leave your response!
Our Stats
hit counter
Author Spotlight
Ashish Kr. Bameta
Website: http://www.siebeloracle.com/Join us in Facebook !!!!
Donate
If you find this blog useful to you, please consider making a small donation to help contribute to further development. Thanks for your kind support!
Hosted By
SIEBEL BOOKSHELF
Advertise With Us
Place your advertisement anywhere in the website.
[Nominal Rates/Genuine readers]
For details reach us at contact@siebeloracle.com
Training Partner
Advertisement
Advertisement
Recent Comments
Most Commented
Most Viewed
Log in | Entries (RSS) | Comments (RSS) | © Copyrights Siebel Expert Panel 2007-2011
Disclaimer: All information is offered in good faith and in the hope that it may be of use, but is not guaranteed to be correct, up to date or suitable for any particular purpose. Siebel Experts accepts no liability in respect of this information or its use. Siebel Experts is an India based website which is governed by Indian law. By using this website you are agreeing to abide by Indian law. This site is independent of and does not represent Oracle Corporation in any way. Oracle does not officially sponsor, approve, or endorse this site or its content.Product and company names mentioned in this website may be the trademarks of their respective owners.