GeeKs Blogging @ dotCOM

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

Siebel – millisecond dates on Applet

by Prachi Sharma



I had discussed in my previous posts about invoking a BS in a calculated field for complex calculated calculations, and, about finding out dates accurate to milliseconds. You can read about them from the links below:

Invoking a BS in a calculated field
finding out dates accurate to milliseconds

Today, I will discuss as to how we can show dates on Applets with upto millisecond accuracy. This could be of immense importance in EAI projects as one example, wherein we need to calculate the time spent on each step. Performance debugging could be really enhanced by using this method.

I will extend the concepts introduced previously. We will take the Problem statement to be, “Showing the ‘Created’ time of the Applet, accurate to the closest millisecond”.

For this we would need to create a new custom column of type string in the corresponding table and the Business Component. Whenever a new record is entered in this table, we will populate this new column as well. I will call it “Created_ms”.

I extended the script which I had used in my previous examples like this -

function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{

if (MethodName == “md_getMS_Created”)
{
var d_test01 = new Date();
var d_test03 = d_test01.getMilliseconds();
var d_test02 = d_test01.toString() + ” : ” + d_test03 ;

Outputs.SetProperty ( “out_get_ms_created”, d_test02 );

return (CancelOperation);
}

return (CancelOperation);
}

I have used the methodname, “md_getMS_Created” in this case.
Instead of outputting the value, we can use this script within some other code where we are creating new records. Now, when we expose this column on an Applet, the user will be able to see the time accurate to milliseconds.

I hope this helps somebody some day.

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

Related posts:

  1. Siebel – getMilliseconds() usage Siebel by default displays all dates in the system accurate...
  2. Siebel – Custom Applet Title There is an Applet title on the top of the...
  3. Siebel – Number of rows displayed in List Applet Siebel Web Client by default shows only the first 7...
  4. Siebel – InvokeServiceMethod() on Calculated Fields InvokeServiceMethod() is used to invoke Business Services and take values...
  5. Siebel – Refresh Applet retaining existing context RefreshRecord() does not work in all cases, does it? This...
  6. Siebel – Fetch Active view properties – III I will discuss a practical example, and the corresponding Inputs...
  7. Siebel EIM – Nomenclature of Custom Column Previous post regarding new custom columns mapping in EIM table...

Tags: Applet, Date, eScript, Siebel, Tips



This entry was posted on Saturday, May 16th, 2009 at 10:30 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 – getMilliseconds() usage
Siebel – DefaultFocus – User Property »



  • 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


  • Subscribe

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

  • Daily Dilbert

    •          
  • Categories

    • Admin Notifications (9)
    • Business Intelligence (2)
      • Actuate (2)
    • CRM (105)
      • CRM News (3)
      • Sage Software / ACT! (1)
      • Salesforce.com (2)
      • Siebel CRM (97)
    • EAI (2)
    • FUN 'n' FROLIC (4)
    • Hot Technologies (1)
    • IT News (34)
    • Meet the Author (9)
    • ORACLE (5)
      • Database (2)
    • Product Demostrations (5)
    • Uncategorized (3)
  • Tag Cloud

    Admin Admin Notifications Applet Author Introductions Business Analysis 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 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

    • 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

  • Siebel Admin Mode Flag - II - Issue Log
  • Siebel - Admin Mode Flag
  • Narayan Patro
  • EAI Siebel Adapter BS - Upsert Multiple Child Records
  • Siebel - Upgrade Process - Part II
  • Siebel - Upgrade Process - Part I
  • Siebel - Upgrade Roadmap - Part II
  • Siebel - Upgrade Roadmap - Part I
  • Siebel - SIS OM PMT Service
  • Siebel - Why Upgrade? - Part II

Just Said

  • Nitin Jain on Siebel – SIS OM PMT Service
  • Madhvi Arora on Siebel – SIS OM PMT Service
  • Christian Jay on Siebel – SIA BC Utility Service – Loop multiple records
  • Hari on Siebel – SIS OM PMT Service
  • Jason on Siebel – EAI Queue – Usage
  • Madhvi Arora on Siebel – Admin Mode Flag
  • Ian McGregor on Siebel – SIS OM PMT Service
  • Nitin Jain on Siebel – EAI Queue – Usage
  • Noreen Cimbali on Siebel – Admin Mode Flag
  • Jason on Siebel – EAI Queue – Usage

Most Commented

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

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