Follow Siebel_Experts on Twitter Sieble Expert Panel on LinkedIn

Home » Business Service, Siebel Configuration

How to Invoke Business service on a click of a button?

30 November 2009 8,934 views 6 Comments Bookmark and Share



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.

SocialTwist Tell-a-Friend

Related posts:

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading ... Loading ...

6 Comments »

  • Neeraj said:

    We can invoke Business service using Named Method.

  • Danish said:

    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.

  • Subramaniam said:

    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

  • Satish said:

    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);
    }
    }

  • Ashish Kr. Bameta
    Ashish Kumar (author) said:

    Thanks Satish for valuable example.

  • Hua said:

    It better use try and catch block. :)

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <font color="" face="" size=""> <span style="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.