Let's say I have the following simple case:
I have a combobox and a button. When I press the button, I want to display the selected item from the combobox in a messagebox.
How do I, from the button click event handler, access the items and selected item from the combobox?
I have tried the pluginwrapper, but that only permits access to DAML properties (i.e. caption etc.). It is frustrating because when debugging, I can see a reference to the combobox, but it is private and cannot be accessed. I have tried casting the pluginwrapper and I have failed to find any way of unwrapping it.
I further tried to use DAML categories and Categories.GetComponentElements, however I don't get anything back there.
Full source attached (it's very simple code).
- Am I using categories wrong? If so, how?
- What is the right way to access elements of another control? (either as e.g. ComboBox, or even better as the implementation ComboBox1 or whatever it may be called).