Value is not loaded in some dynamic select fields
User opens a work object from the work list. The work object opens in Review mode with values for fields.
Notice the encircled value in below screen shot:
User performs an edit on the work object and the value gets populated in corresponding editable control.
For some of the dynamic selects, the default value displayed in Edit mode is not the same as it was depicted in Review mode.
Notice the encircled value in dynamic select:
Steps to Reproduce
- Create a layout with two rows.
- In first row, configure a cascading dynamic select control.
- In the second row, configure only one dynamic select control.
The problem is due to the way the dynamic selects are configured.
The dynamic select control configured in second row, does not have any child dynamic select to load.
However, it has a 'TargetID' specified and it points to the child dynamic select present in the first row.
This causes the child dynamic select to be loaded twice, when work object is opened in Edit mode. During first load, it gets the correct value.
However, the subsequent load causes it to load with different value.
The issue is resolved after removing the 'TargetID' field that is specified in the dynamic select of second row.