AnsweredAssumed Answered

How do I get a reference to another control?

Question asked by danielhc@informi.dk on Aug 1, 2018
Latest reply on Aug 2, 2018 by wkaiser-esristaff

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).

Attachments

Outcomes