How can I set the text showing in a form’s combo box (like when record motion occurs)?
(I’m not seeking to set to the underlying list of choices in the combo-box, rather the text showing before clicking, or between text box usage.)
Here’s what I’ve learned so far:
oEvent.Source.Text = "some text"
Will set the current combo box text from an event from this, and only this, Combo Box.
But I can’t seem to find a similar method for any other combo box, e.g. one named “Foo”. In other words, and in particular,
oEvent.Source.Model.Parent.getByName("Foo").Text
is missing Text
, (i.e. it does not seem to have a setText
method).
Also I can’t seem to locate a setText
method when starting from thisComponent
as follows:
thisComponent.getDrawPage().Forms.getByName("MyForm").getByName("Foo")
I want to be able to show the current record’s values in several different combo boxes used to lookup the current record in this form where you can use the combo boxes to select records.