Custom Field That Is Set To Be Update-able But Cannot Update On The UI

(Doc ID 2097073.1)

Last updated on JANUARY 19, 2016

Applies to:

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

Symptoms

On : 11.1.9.2.0 version, Accounts, Contacts, Households

ACTUAL BEHAVIOR
---------------
Customer has a custom field on the account object. "People_c" is a Text Field.
The Text Field is marked as updatable.
There is a groovy script that will automatically increment this field.
However, the customer cannot override this value if the customer needs to.


EXPECTED BEHAVIOR
-----------------------
Customer has a custom field on the account object. "People_c" is a Text Field.
The Text Field is marked as updatable.
There is a groovy script that will automatically increment this field, however, the customer should be able to override this value if the customer requests it.

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a custom field on the account object.
2. Mark this field as updatable
3. Display this value on SUI's Account Profile page.
4. To handle auto-incrementing, apply a Groovy script similar to:

def sequenceNumber = 0
def salesAccountView = newView('OrganizationProfile')
def vc = salesAccountView.createViewCriteria()
def vcr = vc.createRow()
def vci1 = vcr.ensureCriteriaItem('PartyId')
vci1.setOperator('=')
vci1.setValue(300000000741484)
vc.insertRow(vcr)
salesAccountView.appendViewCriteria(vc)
salesAccountView.executeQuery()
if(salesAccountView?.hasNext()){
  def salesAccountVo = salesAccountView.next()
  sequenceNumber = salesAccountVo.getAttribute('BackendSequence_c') as int
  sequenceNumber = sequenceNumber + 1
  salesAccountVo.setAttribute('BackendSequence_c',sequenceNumber)

}

setAttribute('People_c',sequenceNumber)

5. Field is not updatable in SUI.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms