Support Article
In grid, Dynamic select shows integer value instead of text
SA-30322
Summary
User has configured last column with dynamic select in repeating grid.
Last column with dynamic select has a section include configuration, where the section has dynamic select and a text field.
Based on condition either Dynamic Select(i.e. a dropdown for multiple values) has to be shown or text field(for single value).
At runtime when grid's first row only shows the dropdown, rest all rows shows text field , then Dynamic Select is not populating correctly, that is, showing code value not dropdown values.
Dyanmic Select has activity as their source. Observed that for non-working scenario, activity for dropdown is not triggered.
When there are more than one row with second column as DS then issue is not observed.
Error Messages
Not applicable
Steps to Reproduce
1.Create a grid, configure a column dynamic select having source as activity.
2.Include this column has section include.
3.Section Included has a Dynamic Select and text filed, based on condition one of the control(DynamicSelect/text field) is visible.
4.When the first row of the grid, shows the column with DynamicSelect but rest all rows shows the column with text field, in this case first row DynamicSelect is not populating.
Root Cause
An issue in the custom application code or rules.
Dynamic Select control for the column in the repeating grid was not configured correctly.
Reported behavior is not replicable in-house. On comparing the tracer logs of working and non-working scenarios, the activity is not called for non-working scenario.
Resolution
Since the activity is not getting called in the non-working scenario, suggest below approach:
- Call Activity explicitly on the flow action’s pre-processing
(OR)
- Call the activity through function callActivity. Refer https://pdn.pega.com/community/pega-product-support/question/dynamically-calling-activities.
Setting 'Run on Client' on the DynamicSelect control resolved the reported behavior. Refer below screen shot:

Published November 18, 2016 - 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.