My Oracle Support Banner

How To Set A Value In A Text Field Using A Field Trigger in Subscription? (Doc ID 2781454.1)

Last updated on JUNE 11, 2021

Applies to:

Oracle Fusion Subscription Management Cloud Service - Version 11.13.21.01.0 and later
Information in this document applies to any platform.

Goal

On : 11.13.21.01.0 version, Extensibility

How To Set A Value In A Text Field Using A Field Trigger in Subscription?

We are setting a value in a text field using a field trigger if the Status is changed from On Hold to Active. Here is the script:

def OrigStatus = getOriginalAttributeValue('Status');

if(OrigStatus == 'ORA_HOLD')
{
  if(Status == 'ORA_ACTIVE')
  {
  setAttribute('XX_OSS_ContractModifier_c', 'Reinstate-' + today().format("dd-MMM-yy"))
  }
}

Here are the observations of what is noticed:
1. The XX_OSS_ContractModifier_c field is not immediately popupalated with the value after the Status has been changed from On Hold to Active.
2. The field is being populated after the script runs and we click Close instead of Save and Close.
3. The field is NOT being populated after the script runs we clicked Save and Close.
 

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


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