My Oracle Support Banner

How to Programmatically Select DCL Fields via Javascript (Doc ID 445381.1)

Last updated on JANUARY 05, 2023

Applies to:

Oracle WebCenter Content - Version 7.5.0 to 7.5.0 [Release Stellent]
Information in this document applies to any platform.
Information in this document applies to any platform.
-----
Content Server 7.5.x

Goal

When customizing the content server interface, usually the check-in page, it may be desirable to populate a set of DCL fields based on some interaction with the user. For example, the user may select a string containing DCL values from a form control, and the code should parse this selection and set the DCL fields.

Easy, you think. Just set the selectedIndex property and then call the updateDependentChoices() method for each field. However, when you try this it will fail to load all of the fields. You may visually see the fields “change size” like things are being selected, but no value is displayed. You may also get javascript errors.

Disclaimer: This is not a core configuration. This is a custom feature extension of the software and is therefore only supported via the purchase of Consulting Services effort. With all customizations, when you upgrade your software, the custom changes may be overwritten. For more information on Customizations see: <Note 122452.1> Global Customer Services Policy Regarding Customizations.

The underlying issue is that the schema code used to populate the DCL fields is threaded. These threads take some time to execute each time a value is selected. In the loop you created that does the setting of the selectedIndex and the updateDependentChoices() call, these things are happening too fast. i.e. schema hasn’t finished updating the dependent choices before your code is trying to set the next one.

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
References

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