Groovy

def FORBIDDEN_VALUES = [ 'MAV_DIR_BB_ACTION_1003', 'MAV_DIR_BB_ACTION_1000', 'MAV_DIR_BB_ACTION_1001', 'MAV_DIR_BB_ACTION_1002' ] def newBBActionValue = BBAction_c if ( FORBIDDEN_VALUES.contains(newBBActionValue) ) { // Set the custom error message. In many Application Composer contexts, // returning false here triggers a system-defined validation error, // or you might use throw new oracle.jbo.ValidationException('Custom Error Message') println("Selected BB Action value cannot be changed. It is restricted. Please select another value.") return false // Stop script execution and signal a failure to the calling process. }

Comments

Popular posts from this blog

dev7 from eror

EPA

Unified Currency Report- Krithika