Professional Documents
Culture Documents
5. Field Pickmap
CanInvokeMethod: DemoCustomMethod
5. MVG applet
6. Runtime property
==========================================================================
1. drilldown----> Based on the Condition ,
3. Create Drilldown object with Name, Hyperlink Field , destination View Name
3. Create Drilldown object with Name, Hyperlink Field , destination View Name
Dynamic Drilldown
===================================================================================
=
if(MethodName == "NewRecord")
function BusComp_SetFieldValue (FieldName)
{
/*
Date :- 15/04/2022
Authr : Chandra
Description:- Added below code for June relese 2022
*/
try
{
if(FieldName == "Account Status")
{
this.ActivateField("Account Status");
var vAccStatus = this.GetFieldValue("Account Status");
if(vAccStatus == "Cancelled")
{
var vCuurentBo = TheApplication().ActiveBusObject(); // Added this Line for
June relse
var vActionBC = vCuurentBo.GetBusComp("Action");
with(vActionBC)
{
vActionBC.NewRecord(NewBefore); //Cancelled Account Activity
vActionBC.SetFieldValue("Description" , "Cancelled Account Activity");
vActionBC.SetFieldValue("Account Id" , this.GetFieldValue("Id"));
vActionBC.WriteRecord();
}
}
}
catch(e)
{
throw(e);
}
finally
{
vActionBC = null;
vCuurentBo = null;
}
}
===================================================================================
===
function BusComp_PreSetFieldValue (FieldName, FieldValue)
{
with(vActionBC)
{
vActionBC.SetViewMode(AllView);
vActionBC.ClearToQuery();
vActionBC.ActivateField("Status");
vActionBC.SetSearchSpec("Status" , "Unscheduled");//Account Id
vActionBC.SetSearchSpec("Account Id" , this.GetFieldValue("Id"));
vActionBC.ExecuteQuery();
}
if(vActionBC.FirstRecord())
{
TheApplication().RaiseErrorText("There are Unsheduled Activities for this
Account, Please Close them before achanging the Account status to Terminating")
}
else
{
// Do nothing
}
}
return (ContinueOperation);
}
===================================================================================
===========
C:\Siebel\8.1\Client_1\bin\enu\scomm.cfg
1. Workflow design
2. validate WF
3. Simulate ---> Debug
4. Deploy ----> WF completed status ---> Appication
5.Invoke ---> Runtime events