GeeKs Blogging @ dotCOM

Let's share…
  • Home
  • About
  • Contribute
  • How To – FAQs
  • Disclaimer
  • Terms & Conditions
10 May 2009

Siebel – InvokeServiceMethod() on Calculated Fields

by Prachi Sharma


InvokeServiceMethod() is used to invoke Business Services and take values from it in case of Calculated Fields.

I actually wanted to post on something else, but, I guess this has to be a precursor to it.

All of us know of Calculated Fields in Siebel Business Components. I am sure they must have solved some very big problems for you at times, as they have for me. However, not all of us know that we can actually invoke Business Service scripts from within the Calculated Fields, rather than just calling some in built functions or playing around with the other fields in the BC. This functionality enhances the already huge functionality of the Calculated Fields in Siebel.

For demonstration, I will first create a new Dummy Business Service, and then invoke it from BC.

Create a new Business Service in Siebel Tools by the name, “Dummy InvokeServiceMethod Test BS”.
Define a method in this BS, “md_SumVals()”. Following is a sample code snippet:

function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
if(MethodName == “md_SumVals”)
{
var num1 = Inputs.GetProperty(“Num1″);
var num2 = Inputs.GetProperty(“Num2″);
var Out_Sum = num1 + “,” + num2;
Outputs.SetProperty(“Out_Sum”, Out_Sum);
return(CancelOperation);
}

return (CancelOperation);
}

Client side BS also works in this case.
This BS is now ready to return the Sum of the two input values in the Output Property, “Out_Sum”.

Now, add a new field, “SumVals” in the BC where this value needs to be exposed. Tick mark the “Calculated” property to TRUE for this field. In the column for Calculated Value, enter the expression:

InvokeServiceMethod(“Dummy InvokeServiceMethod Test BS”,”md_SumVals”,”num1=3, num2=4″, “Out_Sum”)

The general syntax for invoking this method is:
InvokeServiceMethod (“[ServiceName]“, “[MethodName]“, “[InputProp1=val1, InputProp2=val2]“, “[OutputProp]“)

This will now return the sum of the two input numbers. This example can be expanded in a variety of ways for complex Siebel operations.

I would like to emphasize for one and all to minimize scripting since Scripts are not recommended as part of Siebel Best practices. It is very rare that you would run out of all the other options and have to use InvokeServiceMethod on a Calculated Field. The requirement has to be really really complex in this case, I guess!



Related posts:

  1. Siebel – millisecond dates on Applet I had discussed in my previous posts about invoking a...
  2. Siebel – ActivateField() split wide open In Siebel, we generally tend to use the fields on...
  3. Siebel – Make MVG Field required Siebel supports the concept of Multi Valued Fields, or the...
  4. Siebel – Make MVG Field required – II Hi friends, This is a follow-up post of the post...
  5. Siebel – getMilliseconds() usage Siebel by default displays all dates in the system accurate...
  6. Siebel – Fetch Active view properties – III I will discuss a practical example, and the corresponding Inputs...
  7. Siebel – Left, Right and from the Middle Extracting a sub string from a lengthy string in Siebel....

Tags: Business Component, Configuration, eScript, Siebel, Tutorials



For regular updates, enter your email address below. We don't spam, we don't share with others!




This entry was posted on Sunday, May 10th, 2009 at 8:15 AM and is filed under Siebel CRM. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Click here to cancel reply.


« Siebel – Number of rows displayed in List Applet
Siebel – Reading data directly from Siebel SRF »



  • Admin Controls

    • Log in
  • Talk to us

    • Bouquets, brickbats, suggestions, complaints?

    • Click here...
  • Authorships

    • We are currently looking out for active authors. Are you willing to contribute?

    • Please click here

    • Everyone's invited..
  • Subscribe by Email


    • For regular updates, enter your email address below. We don't spam, we don't share with others!

  • Sponsors

  • Subscribe

    • Entries (RSS)
    • Comments (RSS)
  • Siebel Bookshelf

  • Daily Dilbert

    •          
  • Categories

    • Admin Notifications (9)
    • Business Intelligence (2)
      • Actuate (2)
    • CRM (115)
      • CRM News (6)
      • Sage Software / ACT! (1)
      • Salesforce.com (2)
      • Siebel CRM (103)
    • EAI (2)
    • Events (1)
    • FUN 'n' FROLIC (6)
    • Hot Technologies (7)
    • IT News (47)
    • Meet the Author (9)
    • ORACLE (14)
      • Database (2)
      • Oracle Fusion Applications Stack (8)
    • Product Demostrations (5)
    • Uncategorized (4)
  • Tag Cloud

    Admin Admin Notifications Applet Author Introductions Business Component Calculated Function Certification CFG file Client Configuration Critique CRM Database Debugging EAI EIM eScript Fundamentals Fusion Middleware Google IT News License Login Microsoft ORACLE Oracle Fusion Applications Performance problems Product Defect Product Demostrations Salesforce Scriptless solutions Security Server Siebel Siebel Secrets SOA Tips Tools Tricks Tutorials Upgrade User Property Workarounds workflows



  • Archives

    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • November 2010
    • August 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
  • Authors

    • Ankit Bhardwaj
    • Ashish Kaul
    • brijesh
    • Himanshu Bajpai
    • Madhvi Arora
    • nanpats
    • Nitin Jain
    • Prachi Sharma
    • Renuka Ankam
    • Vikas Luthra
  • Administrators

    • geeksblogging@gmail.com
    • admin@geeksbloggingat.com
  • Sponsors

Fresh Ideas

  • Login Failed in Dedicated Web Client : MVF Issue
  • Oracle Fusion Applications price list
  • Research to Development - Fusion Apps Series
  • Oracle ACE Program
  • HCM user Experience through UI - Fusion Apps series
  • "Managing Oracle Fusion Applications"
  • Microsoft *previews* Windows 8 - Part 2 now available !!
  • Let's upgrade Siebel CRM to Fusion Apps "right now" !!
  • Ness Technologies bought out by Citigroup Unit
  • Oracle #1 CRM Applications vendor ??

Just Said

  • Amit Sharma on Siebel – Installer hangs midway
  • Khadijah Mosinski on Salesforce.com not upto the mark?
  • Hamre319 on Highrise Customer Relationship Management
  • Nitin Jain on “Managing Oracle Fusion Applications”
  • zama racha on “Managing Oracle Fusion Applications”
  • Nishant Aggarwal on Siebel – License keys don’t work / are invalid
  • Nitin Jain on Siebel – SIA BC Utility Service – Invoke BC Method
  • Pedro Garcia on Siebel – SIA BC Utility Service – Invoke BC Method
  • Nitin Jain on “Managing Oracle Fusion Applications”
  • Nitin Jain on Microsoft *previews* Windows 8 – Part 2 now available !!

Most Commented

  • Siebel - SIA BC Utility Service - Loop multiple records
  • Siebel - Installer hangs midway
  • Siebel - Adding License Keys to Sample
  • Siebel - Popup Update Only
  • Siebel - Reading data directly from Siebel SRF
  • Siebel - Automatic User Logout
  • Siebel - EAI Queue - Usage
  • Siebel - Looping multiple records - Update records
  • Siebel - SIS OM PMT Service
  • Siebel Tools hangs when checking out objects

Old Favourites

  • Highrise Customer Relationship Management
  • Siebel - Autosave Opportunity data - Sample Code
  • Siebel - Autosave Opportunity data - The concept
  • Renuka Ankam
  • Siebel - Merge Records - Checklist
  • Siebel - Fetch Active view properties - III
  • Oracle 11g Certification coming soon
  • Siebel - Fetch Active view properties - II
  • Siebel - Fetch Active view properties
  • Siebel - Automating Merge Records by script - II

If you also want to write on GeeksBlogging@dotCOM, click here. Area of Specialization no constraint. Become Famous!


Entries (RSS) and Comments (RSS).