Description
DETAILS:
If you update a read-only or enter once attribute via a gel script in a process that autostarts on create, create a new instance of the object and click Save, and then click Save again, the change made by the process will be overwritten.
STEPS TO REPRODUCE:
- Create a custom object. I called mine "My Test Object" with id "mto".
- Check the Event Enabled box and click Save.
- Create a String attribute with a default value and Maximum size 200. I called mine "Test Attribute" with id "ta" and used "Not Applicable" as my default value.
- Add the attribute you created to the General - Layout: Edit view.
- Create a process on your custom object that auto-starts on create with a single step that contains a custom script that updates the attribute you created to something other than your default value. I used "Instance Created". I have attached the gel script I used for your convenience.
- Create an instance of your object. When you have entered the required information, click the Submit button.
NOTE: The attribute you created has been successfully updated to the value you chose in your Gel Script.
- Create a second instance of your object. When you have entered the required information, click the Save button.
- Click the refresh button.
NOTE: The attribute you created has been successfully updated to the value you chose in your Gel Script.
- Create a third instance of your object. When you have entered the required information, click the Save button.
- Once the Edit Screen draws and your process has completed, check the odf_ca table for your custom object.
NOTE: The attribute you created has been successfully updated to the value you chose in your Gel Script.
- Click the Save button on the Edit Screen.
- Check the screen.
NOTE: It still shows the default value.
- Check the odf_ca table for your object.
NOTE: The value for the attribute you created has been changed back to the default value
- Repeat steps one through 16. This time, do not mark the attribute read-only. Instead, after adding the attribute to the Edit: Layout view, click on fields and change your attribute to Enter Once.
EXPECTED RESULTS: The value should not be overwritten when you click on save.
ACTUAL RESULTS: The value is overwritten when you click on Save.
Solution
WORKAROUNDS:
Hit refresh instead of Save when you see the Edit screen.
STATUS/RESOLUTION:
This issue has been documented as CLRT-50827 and is assigned to development for review. If you are experiencing this problem and the workaround above does not significantly help, please contact CA Clarity Technical Support.
KEYWORDS: custom Object, CLRT-50827, read-only attribute, enter once attribute, GEL script, process, bpm, clarity12open