Articles Archive for April 2009
Debugging Techniques, Scripting »
Right Click on My Computer
Goto Properties -> Advanced -> Environment Variables
Goto System Variables. Click New. Add below values
Variable Name : SIEBEL_LOG_EVENTS
Variable Value: can be (1,2,3,4,ALL). Highest value is “ALL”
Goto System Variables again. Click New. Add below values
Variable Name : SIEBEL_LOG_DIR
Variable Value: Directory where you wants logs like (c:LocalLogdir)
Configuration, Import Objects »
Import Objects are configured in Siebel for End Users for loading small quantity of data to any Siebel Entity. You can load data from flat files to Siebel using a simple Import Wizard. Below is a case study for the same.
Some check-points before starting the development –
1. Import Objects should only be defined on the BCs which are Primary BCs of the BO.
2. Import Objects will be active for a list applet only.
3. We cannot configure Imports for Child BCs in a BO.
4. “Import” menu item is present on …
Debugging Techniques, Scripting »
How to do Browser Script Tracing in Siebel
For tracing the browser script, you can follow the below procedure –
1. In Application Browser script, create new script with MethodName “trace_log”.
function trace_log(as_text)
{
try
{
var MyWindow = window.open(”,’DEBUG’,’toolbar=no,location=no,’ + ‘directories=no,status=no,menubar=no,’ + ’scrollbars=yes,resizable=yes,’ + ‘width=400,height=300,left=20,top=20′);
MyWindow.document.write(as_text + “<BR><BR>”);
}//try
catch(e)
{
alert(”an error occurred in log ” + e.message + “n” + e.toString());}//catch
finally
{
MyWindow = null; }//finally
}//endfunc
2. Application Browser Script declarations write –
top.log = trace_log.
3. Now you can call top.log(“text”) function from any Browser Script(Application, Applet, BusComp, Business Service) , it will write logs to a pop-up …
Debugging Techniques, Scripting »
During the development or testing phase of Siebel Application we may encounter errors in Siebel Dedicated or Tools. So how do we find out the source of error or where to raise log levels to get detailed log file.
Siebel provides some debugging techniques , just follow the below links for details
• Enable Client Side Tracing Scripts
• Siebel Environment Variables
• Spooling
• Siebel Debugger – Break Points
EAI, Web Services »
1. Create a new record and give the business service name as the name of Proxy Business Service: CurrencyConvertorSoap, pick its method.
2. In the middle Input applet, click Load From File button to browse the Inputs file [WebService-Inputs.xml] which we created in the above process. This will load input Siebel message. Navigate inside the mvg at Child Type and give the From and To Currency names like USD and INR
Inputs – From and To Conversion Currencies.jpg
IMPORTANT:
Now you need to modify this message a bit, Click the Child Type mvg …
EAI, Web Services »
It’s tough, but will do it simply…
Invoking Outbound Web Service
You can invoke the proxy Business Service from anywhere in application, and that will in turn call the Outbound Web Service and bring the response in the Siebel Message based on the Output Integration Object : ConversionRateResponse
1. Lets Create Request Message which is needed to Invoke the Web Service.
Navigate to Business Service Simulator, Create a new record in the top list applet and give the business service as: PRM ANI Utility Service and method as CreateEmptyPropSet.
Or Alternatively: Import this file using …
EAI, Web Services »
It’s complicated, but lets simplify it …..
We need to configure Outbound Web Services in Siebel for invoking any third party Web Service and get data in the form of response message, on passing the required inputs to the external Web Service.
Requirement:
Siebel needs to get the latest Currency Conversion Rates, example INR vs USD.
Solution:
We will use a third party Web Service to do this conversion and get the converted currency rate in Siebel.
WSDL: http://www.webservicex.net/CurrencyConvertor.asmx?wsdl
Implementation: Its simple, just follow the below steps in order….
1. Import the given WSDL file given …
Outbound Communication Manager, Siebel SQLs & Database »
During Siebel development, we have many development environments like DEV, QA, BUILD, and PRODUCTION. And we may get mails or end-users may get mails from Siebel, but we don’t know which the originating environment is. Hence, it takes time to debug and find the source of emails.
Solution:
The emails are sent by the server component – Outbound Communication Manager. Outbound Communication Manager Business service inserts records with parameters in two tables – S_SRM_ACTION and S_SRM_DATA. The action name is stored in S_SRM_ACTION. S_SRM_DATA stores the various parts of the mail like …
