My Oracle Support Banner

Open UI SetState Function Not Able to Maintain State After SetFieldValue Is Fired (Doc ID 2796722.1)

Last updated on SEPTEMBER 01, 2023

Applies to:

Siebel CRM - Version 21.4 and later
Information in this document applies to any platform.

Symptoms

Open UI SetState API to not able to maintain the State (hide a field, make a field readonly) after SetFieldValue is fired and field being updated has Immediate Post Changes = TRUE.

The team is cleaning up Open UI scripts using the recommendations in the Bookshelf document "Configuring Siebel Open UI", section "Control State Manipulation" in Chapter 12.

After updating the code to use SetState to change a control state such as hiding a field, the control is visible again after updating a field value in the same applet.   This behavior occurs when the field being updated has Immediate Post Changes = TRUE.



STEPS
-----------------------

1. Create accountFormAppletPR.js with below content and put it in ai\applicationcontainer_external\siebelwebroot\scripts\siebel\custom folder.

5. Inspect the Workspace

6. Navigate to the Accounts List View. Note the Home Page/URL is hidden as expected from the PR.

7. Changing the "Name" value, tab to any other field

8. Note that the URL / Home Page control is again visible.



Changes

 

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
Changes
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.