Updating "Name" Field Value Based On "Primary Party" Field Value Update In Contract Is Not Working
(Doc ID 2883490.1)
Last updated on JULY 15, 2022
Applies to:
Oracle Fusion Enterprise Contracts Management Cloud Service - Version 11.13.22.01.0 and laterInformation in this document applies to any platform.
Symptoms
On : 11.13.22.01.0 version, Extensibility
ACTUAL BEHAVIOR
---------------
User has encountered an issue in Contract Object. The Issue is as below.
User has OOTB "Name" field on Contract. And user is trying to update this field, based on Primary Party OOTB field (Account) update.
User wrotes this script on field level triggers. Below is the script.
def a=nvl(ContractTypeName,"no_value")
if(a=="Enterprise Client Contract Repository")
{
setAttribute("Cognomen",PartyName+"/"+ContractTypeName_c+"/"+ContractRegion_c+"/"+substringBefore(substringAfter(getSelectedListDisplayValues("SolutionLine_c")as String,"["),"]")+"/"+StartDate)
}
else
{
if (a=="US Commercial Risk Repository Only")
{
def vo1 = ContractDetails_ContractToContractDetails_Tgt
while (vo1.hasNext()) {
def row1 = vo1.next()
def ContTypeName = row1.getAttribute('ContractTypeName_c')
def Reg = row1.getAttribute('Region_c')
def SolLine = row1.getSelectedListDisplayValues("SolutionLine_c")
setAttribute("Cognomen",PartyName+"/"+ContTypeName+"/"+Reg+"/"+substringBefore(substringAfter((SolLine)as String,"["),"]")+"/"+StartDate)
}
}
}
EXPECTED BEHAVIOR
-----------------------
The groovy is not working as expected
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create groovy
2. Trigger the groovy
3. The groovy is not working as expected
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |