Support Article
Not able to Add a new State to pyState OOTB
SA-36176
Summary
Using Pega Out-of-the-box (OOTB) Property : pyState defined in - CL : @baseclass , ID : pyState , RS : Pega-RULES:07-10-01, when user is adding a new State to the Field Value in their Ruleset Version and CL : Data-Party , the newly added states are not getting reflected in the user screen whereas in designer studio the newly added state is listed under the field values.
Error Messages
Not Applicable
Steps to Reproduce
Add a New State to Field Value pyState and then check in Pega OOTB property : pyState defined in - CL : @baseclass , ID : pyState , RS : Pega-RULES:07-10-01 , new state is not getting added to property : pyState.
Root Cause
An issue in the custom application code or rules.
The control "PickState" was being used to display the property, pyState which was refering to field values.
In this control, the dropdown values are hard coded. Hence the newly created field values were not getting displayed in the drop-down.
Resolution
Perform the following local-change:
Instead of "PickState" control, use the "Dropdown" control, with list source as "As defined on property".
Published May 4, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.