I have a datawindow containing x number of rows. The first column -- which I'll call "employee" -- is a dropdown datawindow with a data column pointing to an employee ID field, and a display column pointing to an employee name field. When adding a row, this column is filled based on the user's dropdown selection. Additionally, a filter is applied to the employee column's DatawindowChild, so that the user may not select an employee who does not match the current filter.
The problem:
When the filter expression changes such that it no longer matches existing rows, the employee column can no longer reference a display value for the current employee ID, because the corresponding row is in the dropdown datawindow's filter buffer. The result is that the data value is displayed instead.
What would be a smart workaround?
Also, one additional thing to consider is that I can't apply a matching filter to the main datawindow, because one of the requirements is that all rows remain visible at all times.
Thanks in advance.
Edit: Powerbuilder 2017 R2.