Tuesday, 13 September 2016

Adding workflow policy Condition based on new column in siebel

1.       Table
Create column on required table
e.g
Table Name
Column Name
S_SRV_REQ
X_HIGH_PRIORITY_FLG



2.       Workflow Policy Column
Create new workflow policy column in Siebel tools
Workflow Policy Column Name
Table
Column
High Priority Flag
S_SRV_REQ
X_HIGH_PRIORITY_FLG




3.       Workflow Policy Object
WF Policy Object
 Changes to be Applied
Service Request
Modify existing WF policy object to add new workflow policy component column ‘High Priority Flag



4.       Workflow Policy Component Column
Parent WF Policy Component
Workflow Policy Component Column Name
Alias
Changes to be Applied
Service Request
High Priority Flag
High Priority Flag
Add workflow policy column under existing WF Policy Component





Compile above changes and restart Siebel application


5.       Workflow Policy

After making changes as explained in above 4 steps, you Can use new column as an condition for workflow policy under Administration- Business Process -->Workflow Polices-->Conditions



Removing diccache.dat for Dedicated Client in Siebel

Avoid creation of diccache.dat file while using dedicated client which is connected to Database server.
Use the below parameter under [ServerDataSrc]/[Env Connection] section in the CFG file.

We have validated the same on dev major

UseDictionaryInTransactionLogging = FALSE 

Enabling Debug Mode for Task Based UI (TBUI) in siebel

Using Debug Mode
Set debug mode in Application level menu-->Tools-->Debug Mode.

PFB Screenshot


A) Dedicated Client

To enable the Debug Mode menu item
  1. Open the configuration file (.CFG) for the application in a text editor.
  2. In the [InfraUIFramework] section of the configuration file, set the EnableRestrictedMenu parameter to TRUE.
    For example:
    [InfraUIFramework]
    EnableRestrictedMenu = TRUE
  1. Save your changes, and close the file.
The EnableRestrictedMenu parameter (in the [InfraUIFramework] section of the configuration file) controls the display of the Debug Mode menu item.
If this parameter is set to TRUE, then users of that application can see the Debug Mode item on the Tools application-level menu. If this parameter is set to FALSE, the Debug Mode menu item is not visible to users.


B)Thin Client


  1. Login to siebel application
  2. Navigate to Administration - Server Configuration -->Enterprises
  3. Query component 'eCommunications Object Manager (ENU)' in Component Definitions tab (Please note component can change as per siebel application)
  4. In Child Tab 'Component Parameters', query EnableRestrictedMenu parameter and Set value as True
  5. Restart Siebel Application



Monday, 12 September 2016

Saturday, 10 September 2016

Get day of the week based on input date in siebel

PFB escript code to Get day of the week based on input date in siebel

var oWeekDay = new Array("Sunday", "Monday", "Tuesday","Wednesday", "Thursday", "Friday", "Saturday");
var strDate = Inputs.GetProperty("DropTime");

var dtDate = new Date(strDate);
var i = 0;
var strWeek = dtDate.getDay();

while (i <= strWeek)
{
var result = oWeekDay[i];
i++;
}
Outputs.SetProperty("weekDay", result);

Get any LOV field in siebel


PFB code to Get value any LOV field in siebel



var strFieldName = Inputs.GetProperty("FieldQuery");
var strSearchExp = Inputs.GetProperty("SearchExpression");

// Get ListOfValues BC
objListOfValuesBO = TheApplication().GetBusObject("List Of Values");
objListOfValuesBC = objListOfValuesBO.GetBusComp("List Of Values");

// Query LOV
with (objListOfValuesBC)
{
ClearToQuery();
ActivateField(strFieldName);
SetSearchExpr(strSearchExp);
ExecuteQuery();

var blnRecord = FirstRecord();

if(blnRecord)
{
strFieldValue = GetFieldValue(strFieldName);
Outputs.SetProperty(strFieldName, strFieldValue);
}
}

Convert input string into Date format in siebel

PFB escript code to Convert input string into Date format in siebel


var splitDate = sDate.split ("/");
var nDay = ToNumber(splitDate[1]);
var nMonth = ToNumber(splitDate[0]);
var nYear = ToNumber(splitDate[2]);

    return (new Date(nYear, nMonth-1 , nDay));