Siebel – getMilliseconds() usage
by Prachi SharmaSiebel by default displays all dates in the system accurate to the seconds place. However, at times, especially in EAI based projects or performance intensive projects, it is often a requirement to calculate accuracy down to the last millisecond.
Siebel provides a ready made function called getMilliseconds() for this functionality.
I wrote a simple script in Siebel Local Client to demostrate this functionality. The contents of the script, “Dummy Get_MS Test” is:
function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
if (MethodName == “md_getMS”)
{
var d_test01 = new Date();
TheApplication().RaiseErrorText( d_test01.getMilliseconds() );
return (CancelOperation);
}
return (CancelOperation);
}
This returned me the value 895 in my tests. To be precise, I received the following output:
—————————
Siebel
—————————
895(SBL-EXL-00151)
—————————
OK
—————————
This cannot be hours, minutes or seconds. It has to be milliseconds.
Hence proven!
Related posts:
- Siebel – millisecond dates on Applet I had discussed in my previous posts about invoking a...
- Siebel – InvokeServiceMethod() on Calculated Fields InvokeServiceMethod() is used to invoke Business Services and take values...
- Siebel – Fetch Active view properties – III I will discuss a practical example, and the corresponding Inputs...
- Siebel – EAI Queue – Usage I had introduced the concept of Siebel EAI Queues in...
- Siebel – Symbolic Strings – Usage Symbolic Strings appear directly in Siebel Tools’ Object Explorer, an...
- Siebel – Automatic User Logout Logging out a user automatically, when the user does not...
- Siebel – Make MVG Field required Siebel supports the concept of Multi Valued Fields, or the...