My Oracle Support Banner

Auto Populating DCL Field With Values Are Disappering After Pressing Save (Doc ID 2619081.1)

Last updated on DECEMBER 22, 2020

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.13.19.07.0 and later
Information in this document applies to any platform.

Symptoms

ACTUAL BEHAVIOR
---------------
The value from a DCL field is disappearing after Save button is pressed.

A Groovy Script was created to populate the DCL field when a value is selected from "ObjectField":

def sitenumber = getAttribute('ObjectField_c');

def vo = newView('CustomObject_c')
def vc = newViewCriteria(vo);
def vcr = vc.createRow();
def vci = vcr.ensureCriteriaItem('RecordName');
vci.setOperator('=');
vci.setValue(sitenumber);
vc.insertRow(vcr);
vo.appendViewCriteria(vc);
vo.executeQuery();
def row = vo.first();
def PC = row.getAttribute('DynChoice1_c');

setAttribute('DynChoice1_c',PC);

EXPECTED BEHAVIOR
-----------------------
The populated values from the DCL field should not disappear on saving.

STEPS
-----------------------
The issue can be reproduced with the following steps:
1. Login to App
2. Go to Opportunity and select the Object Field that is initiating the trigger to populate the DCL field with values.
3. Click Save

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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.