I have a dropdown in a ribbon, displaying records from a table, and a form that can change the values in the table. When I change the table, I need to update the dropdown.
The contents of the dropdown list I have been able to update without a problem. I run DataRibbon.InvalidateControl "rDZtS_ddnDruhData" and it re-populates the entire dropdown, EXCEPT for the currently displayed (selected) value.
Say I have in the table:
And I have selected from the dropdown BBB, which is what is currently showing in the non-dropped window. I go to the table edit form, change BBB to BZZ. I have custom event procedures that trigger various things that change around the app, including this ribbon dropdown. When I enter the dropdown afterwards, and click the arrow to expand the list, the change has taken place – the second position now shows BZZ, instead of the original BBB. That is all fine, but the DISPLAYED value remains BBB. I can now select BZZ, and once I do, BBB is no longer even visible. However, I want that displayed value of BBB to ALSO change to BZZ when the dropdown is updated.AAA
BBB
CCC
DDD
EEE
How do I make that happen?