GeeKs Blogging @ dotCOM

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

Siebel – Left, Right and from the Middle

by Nitin Jain


Extracting a sub string from a lengthy string in Siebel. What is the best solution you can think up for this typical problem? I know, I know, you and you colleagues have done this thousands of times before. But, have you ever successfully done it without using a single line of scripting?!!

Now, it becomes interesting! :-)

Not that I am saying, it’s entirely possible only by configuration. At the very least I don’t know how it’s possible that way.

Let’s assume a test string:
var strng = “abcdefghijklmnopqrstuvwxyz1234567890″;

Requirement : Take the first 5 characters from the above string in another substring
Solution 1:
var sub_strng = strng.substr( 0,5 );

Output:
abcde

Solution 2 : Using Left() function.
Take it in a Calculated field. Use the expression,
Left( strng, 5 )

Output:
abcde
I have noticed that at times, this does not work within eScript. Should work with VB and in Calculated Expressions.

Requirement : Take the last 5 characters from the above string in another substring
Solution 1:
var sub_strng = strng.substr( (strng.length – 5),5 );

Output:
67890

Solution 2 : Using Right() function.
Take it in a Calculated field. Use the expression,
Right( strng,5 )

Output:
67890
I have noticed that at times, this does not work within eScript. Should work with VB and in Calculated Expressions.

Requirement : Take the middle 5 characters from the above string in another substring (assume ‘cdefg’)
Solution 1:
var sub_strng = strng.substr( 2,5 );

Output:
cdefg

Solution 2 : Using Mid() function.
Take it in a Calculated field. Use the expression,
Mid( strng,2,5 )

Output:
cdefg
I have noticed that at times, this does not work within eScript. Should work with VB and in Calculated Expressions.

Using Calculated Expressions where these are very commonly required, does save scripting at times.

Trust me, this really works!! :-)



Related posts:

  1. Siebel – InvokeServiceMethod() on Calculated Fields InvokeServiceMethod() is used to invoke Business Services and take values...
  2. Siebel – Make MVG Field required – II Hi friends, This is a follow-up post of the post...
  3. Siebel – Make a field Required, conditionally There was a requirement in our project to make Account...
  4. Siebel – Symbolic Strings – Usage Symbolic Strings appear directly in Siebel Tools’ Object Explorer, an...
  5. Siebel – EAI Siebel Adapter Search Spec Hi, I can bet that for anybody who has worked...
  6. Siebel – ActivateField() split wide open In Siebel, we generally tend to use the fields on...
  7. Siebel – Make MVG Field required Siebel supports the concept of Multi Valued Fields, or the...

Tags: Business Component, Calculated Function, Configuration, Scriptless solutions, 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 Wednesday, August 12th, 2009 at 2:34 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 – Left, Right and from the Middle”

  1. Nitin Jain says:
    August 12, 2009 at 9:26 PM

    I remember being mocked at once over this issue.

    Somebody said, “hey, listen to what garb Nitin is talking about. He is talking about some Left and Right in Siebel..!!”

Leave a Reply

Click here to cancel reply.


« Siebel – Symbolic Strings
Siebel – Symbolic Strings – Usage »



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