Validation Is Not Working In Server Script for Opportunity Object
(Doc ID 2625723.1)
Last updated on DECEMBER 22, 2020
Applies to:
Oracle Fusion Sales Cloud Service - Version 11.13.19.07.0 and laterInformation in this document applies to any platform.
Goal
Qn1:On : 11.13.19.07.0 version, Opportunities
Prompt is not working in server script in Opportunity object
We are trying to throw validation in opportunity object for Estimated Billing Date (EffectiveDate) field but it is not working.
Server script -->
def a=getAttribute('EffectiveDate')
/**/
//def a=getAttribute('EstBillingDate_c')
/**/
def b=getAttribute('POReceivedDate_c')
if(a<b)
{
throw new oracle.jbo.ValidationException("EFF Date :"+a+ " POReceivedDate_c : "+b)
return true
}
else
{
throw new oracle.jbo.ValidationException("EffectiveDate :"+a+ " POReceivedDate_c : "+b)
return false
}
Solution
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
Goal |
Solution |
References |