GeeKs Blogging @ dotCOM

Let’s share…
  • Home
  • About
  • How To – FAQs
  • Disclaimer
  • Terms & Conditions
8 Jun 2009

Siebel – EAI Siebel Adapter Search Spec

Hi,

I can bet that for anybody who has worked on Siebel EAI, ‘EAI Siebel Adapter’ is not an Alien term. This post is about EAI Siebel Adapter’s Query method.

How to restrict the number of Child records returned in Siebel adapter’s Query.

Scenario – Order and related Order Line Items

The way EAI Siebel Adapter’s Query method works is that, you specify the name of the IO in ‘OutputIntObjectName’ argument and row id of the parent record in ‘PrimaryRowId’ argument. However this way the query method will fetch all the Line Items for that Order.

So here, to restrict the number of Line Items returned (at the child Line Item level) in the EAI Siebel Adapter Query, we can use another input argument of Query method, which is ‘SearchSpec’.

The value for the ‘SearchSpec’ argument is an expression based on any field from the IC’s of the integration Object, with the dot notation. Not all of us would know that we can use it to restrict the number of child records returned.

Sample Expression: [Order Entry - Line Items.Source] = ‘Testing’

This expression means only the line itemitems where the field ‘Source’ of ‘Order Entry – Line Items’ BC has value ‘Testing’, will be retrieved in the output Siebel Message.

Just creating the expression for the ‘SearchSpec’ argument is a trick here.

In our requirement the user can select multiple line items, say out of 14 line items he has selected only 5 and clicks on ‘Sync Selected’ button. Now we have to create an expression based on selected line items and then pass it as a process property to the workflow where we are using the Siebel Adapter. The sample script for creating expression is pasted below:-

(Note: Here the variable SearchSp is an expression string which will be passed as an input to the workflow)

RecExists = this.BusComp().FirstSelected();
      while (RecExists)
        {
         rec[i] = this.BusComp().GetFieldValue(”Id”);
          RecExists = this.BusComp().NextSelected();
            i++;
           }
           SearchSp = “[Order Entry - Line Items.Id]=’” + selrec[0] + “‘”;
         
           for(x = 1; x < selrec.length; x++)
           {
            SearchSp = SearchSp + ” OR ” + “[Order Entry - Line Items.Id]=’” + selrec[x] + “‘”;
           
           }

That’s it! We hope this helps somebody someday.

  • Twitter
  • Digg
  • Facebook
  • LinkedIn
  • Delicious
  • FriendFeed
  • Gmail
  • Hotmail
  • Multiply
  • MySpace
  • Yahoo Buzz
  • Yahoo Mail
  • Share/Bookmark

Related posts:

  1. Siebel – EAI Siebel Adapter – Looping Multiple Records This is a follow-up post on the post, Siebel –...
  2. Siebel – FINS Industry XML Query Service “Extracting values from a tag deep down in the Hierarchy.”...
  3. Siebel – Custom Applet Title There is an Applet title on the top of the...
  4. Siebel – SIA BC Utility Service – Invoke BC Method I had discussed about the vanilla Business Service, “SIA BC...
  5. Siebel – SIA BC Utility Service – Loop multiple records This is a vanilla business service which provides an extensive...
  6. Siebel – EnableServiceArgTracing – Logging Messages Hi, We have already discussed at quite a length the...
  7. Siebel – Looping multiple records – Query and Process In my last post, I discussed as to how we...

Tags: EAI, Siebel, Tips, Tricks, Tutorials, Workarounds, workflows

This entry was posted on Monday, June 8th, 2009 at 1:13 PM 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.

One Response to “Siebel – EAI Siebel Adapter Search Spec”

  1. Ankur Saxena says:
    June 8, 2009 at 4:56 PM

    Nicely explained…
    Keep it up…

Leave a Reply

Click here to cancel reply.

« Siebel Sales Wireless on Google Android
Siebel EIM – Custom table mapping »
  • Admin Controls

    • Register
    • 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


  • Subscribe

    • Entries (RSS)
    • Comments (RSS)
  • Sponsors

  • Daily Dilbert

    •          
  • Sponsors

  • Categories

    • Admin Notifications (9)
    • Business Intelligence (2)
      • Actuate (2)
    • CRM (88)
      • CRM News (3)
      • Sage Software / ACT! (1)
      • Siebel CRM (83)
    • EAI (2)
    • FUN 'n' FROLIC (4)
    • IT News (25)
    • Meet the Author (8)
    • ORACLE (1)
      • Database (1)
    • Product Demostrations (3)
    • Uncategorized (2)
  • Tag Cloud

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



  • Archives

    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
  • Authors

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

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

Fresh Ideas

  • Salesforce CRM Essentials Webinar
  • Sun + Oracle is faster: Proof October 14
  • Oracle v/s IBM: One poster says it all
  • Geeks Blogging @ dotCOM - Subscribe by Email
  • Siebel - Installer hangs midway
  • Oracle finalizes new Training Partner
  • Oracle divorcing Prometric
  • What is Google?
  • Siebel - Case Insensitivity (CIAI) Wizard
  • Oracle VM Templates for Siebel CRM

Just Said

  • Nitin Jain on Sun + Oracle is faster: Proof October 14
  • Kunal on Sun + Oracle is faster: Proof October 14
  • David Clinton on Oracle finalizes new Training Partner
  • Nitin Jain on Siebel – Automatic User Logout
  • Tejeshwer on Siebel – Automatic User Logout
  • Nitin Jain on Siebel – Installer hangs midway
  • geeksajan on Siebel – Installer hangs midway
  • Nitin Jain on Siebel – Run Case Insensitive queries
  • Adriana on Siebel – Run Case Insensitive queries
  • Nitin Jain on Siebel – Run Case Insensitive queries

Most Commented

  • Siebel - SIA BC Utility Service - Loop multiple records
  • Siebel - Adding License Keys to Sample
  • Siebel - Popup Update Only
  • Siebel - Reading data directly from Siebel SRF
  • Siebel - Looping multiple records - Update records
  • Siebel - Automatic User Logout
  • Nitin Kumar Jain
  • Siebel - Scrolling between records - UP and DOWN
  • Siebel Tools hangs when checking out objects
  • Siebel - Make a field Required, conditionally

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).