Search here for wide range of results..
Loading

Configuration, Scripting »

[6 May 2009 | 2 Comments | ]

Suppose your data having special characters is stored in string variable sLoginName.
Then below is code that will do your job.
while(Clib.strchr(sLoginName, ‘ ‘) || Clib.strchr(sLoginName, ‘\n’) || Clib.strchr(sLoginName, ‘\r\n’)))
{
sLoginName = sLoginName.replace(”\r\n”,””);
sLoginName = sLoginName.replace(”\n”,””);
sLoginName = sLoginName.replace(” “,””);
}
Post your replies below and any question to Interview Forum.

Configuration, Scripting »

[6 May 2009 | 2 Comments | ]

Scenario:
When you select any record in a MVG applet, and then close the applet with that record selected, that record is shown on the MVF of parent. Now our requirement is that we want to show only the Primary Record of the MVG to show up in Parent MVF, how to achieve it –
Solution:
Write the below code in the MVG Applet’s Server Script – WebApplet_PreInvokeMethod
function WebApplet_PreInvokeMethod (MethodName)
{
if (MethodName == “CloseApplet”)
{
this.BusComp().ClearToQuery();
this.BusComp().SetSearchSpec(”SSA …

Debugging Techniques, Scripting, Tips & Tricks »

[6 May 2009 | 2 Comments | ]

1. Create a simple batch file “SiebelKill.bat”
2. Right Click Edit the file with Notepad
3. Put the below text
REM******************************************************************************
TASKKILL /F /IM siebel.exe
TASKKILL /F /IM iexplore.exe /FI “WINDOWTITLE eq Siebel Call Center – Microsoft Internet Explorer*”
REM******************************************************************************
4. Save the file
5. Double click the file whenever you want your dedicated Siebel application and its task – Siebel.exe to get killed from Task Manager automatically.
And its done…

Case Studies & Scenarios, Configuration, User Properties »

[6 May 2009 | 2 Comments | ]

Scenario:
Parent BC: Service Request
Child BC: Activities
If Service Request business component Status field is closed then the Action BC should become read only.
Implementation:
1. Create a Calculated Field in Parent BC – Service Request as shown below –
Field Name: Calc Status Closed
Calculated Value: IIF([Status] = “Closed”,”Y”,”N”). …Thanks Vijaya for noticing it
Note: Set the Links Specification Property to TRUE for the field: [Calc Status Closed]
2. Create a BC User Property in Child BC – Action as shown below -
Name: Parent Read Only Field: Service …

Case Studies & Scenarios, Configuration, User Properties »

[6 May 2009 | One Comment | ]

Scenario:
Parent BC: Action Template.
Child BC: Action Language.
Now, for any record in Child BC, if the ‘Language’ field value is ‘Chinese’, then, the parent BC should become read-only.
Implementation:
For this, you should have a multivalve field defined in parent BC for Language Name in Child BC. Let’s say this MVF: Language Name
1. Create a Calculated field in Parent BC with this expression –
Field Name: Calc Language Read Only Field
Calculated Value: EXISTS ([Translated Language] = “Chinese”)
2. Create a BC User Property in Parent …