SetFieldValue Does Not Generate Value And Causes Error For Required Field When The Corresponding List Column Is In Focus
(Doc ID 3008596.1)
Last updated on MARCH 05, 2024
Applies to:
Siebel CRM - Version 23.3 and laterInformation in this document applies to any platform.
Symptoms
SetFieldValue method does not work for required field when the corresponding list column is in focus and generate the following error:
The issue can be reproducible with the steps below:
1. Login to Siebel Tools.
2. Go to 'Business Component' and select 'Account' record.
3. Right click and select 'Edit Server Scripts'.
4. Add the following code in BusComp_PreWriteRecord.
this.SetFieldValue("Location", "aaaaaaaaaa");
5. Save it and go to 'Business Component'->Field, then select 'Location' record.
6. Set Required field to TRUE.
7. Deliver the change (or inspect)
8. Login to Siebel application and go to Account List View.
9. Click '+' button to create a new record.
10. Type any string on Name field.
11. Then place the focus on Site list column (this is mapped to Location field).
12. Type Ctrl+S to save the record. You will see the following error:
'Site' is a required field. Please enter a value for the field.(SBL-DAT-00498)
If the focus is not on the Site list column, the code will set the value 'aaaaaaaaaa' on the Site list column and no error occurs when saving.
Changes
Upgraded from 15.8 to 23.3
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 |