eScript
« Previous EntriesSiebel workaround of ShowModalDialog defect
Tuesday, July 15th, 2008When you use the above code in 7.8.2.* version you application will hang after showing you the prompt. You need to press CTRL+8 to get out of hang mode.
You need to make small change to vanilla JS files to make it work. Here is link to an alert on metalink which can help you [...]
Using ShowModalDialog
Monday, July 14th, 2008Write the below given code in browser script for an applet . This below given code will display Abort, Retry and Ignore prompt on click of a button.
In this example I had created a button on an applet and the name of the method it invokes upon click is EventMethodAddress. This code has been provided [...]
Different kind of Dialog box in Siebel.
Monday, July 14th, 2008This is going to be 3 part series and I am going to post one part each day.
By default very few types of prompts are available in Siebel with which we can interact with user. Most commonly used method are:
RaiseErrorText: Which is used to display information to user but when we use it the processing [...]
ActivateField ClearToQuery and ExecuteQuery
Wednesday, July 9th, 2008Divya a reader and member of Siebel Unleashed forum asked me a question about a common code snippet that we use in our scripting. The code snippet is as following
var oEmpBusObj = TheApplication().ActiveBusObject();
var oEmpBusComp = oEmpBusObj ().GetBusComp(”Employee”);
var sLoginName;
oEmpBusComp.ActivateField(”Login Name”);
oEmpBusComp.ClearToQuery();
oEmpBusComp.SetSearchSpec(”Login Name”, sLoginName);
oEmpBusComp.ExecuteQuery();
oEmpBusComp = null;
oEmpBusObj = null;
and the Question she asked is
Is it necessary that we have [...]
File SaveAs Dialog box in Siebel
Thursday, July 3rd, 2008This article has been submitted by Ranjith. He is a Siebel certified consultant working on Siebel EAI.
Requirement:
Saving an exported file to the client machine running Internet explorer, allowing the user to choose the location. This called for a FileSaveAs dialog box popping up. After a lot of searching on the net, I found it could [...]
Validating an Email Address in Siebel
Tuesday, June 24th, 2008I read this requirement somewhere few days ago. The solutions given for these were quite lengthy and inefficient. For example
Using string.indexOf to check for presence of @ and dot(.)
Loop for all the characters and verify if @ an dot sign is present or not.
I thought that there must be a better way to do it. I [...]
try-catch-finally and throw - Final Part
Sunday, June 22nd, 2008In this post I am just going to describe the how we can suppress all errors or some particular errors using error handling.
Suppressing all errors
Suppressing All Errors is very easy, all you need to do is just have blank catch statement for example
try
{
//some code
}
catch(e)
{ ; }
The above mentioned code will result in suppressing of all [...]
try-catch-finally and throw - Part 4
Thursday, June 19th, 2008In this post we will discuss throw keyword in detail.
What is throw?
In simple words throw is keyword used in error handling
Is throw keyword compulsory to use?
No, it is optional and in many cases it is not used.
What is the purpose of throw?
When we write a custom method then we have two choices.
try catch finally and throw - Part 3
Wednesday, June 18th, 2008Practical Example:
Here is the usage of all the constructs in an example
try catch finally and throw - Part 2
Tuesday, June 17th, 2008Explanation of ‘e’ in catch block?
‘e’ in catch block is an object that contains information about the error or exception that has happened. So, in case if you would like to show the actual error that has happened that you could use the following code
Subscribe by Email