Trying to implement InitializeComboBox with the ValidationPanel object is not working as expected.
QAID # 20797 Published
Question / Problem:
Trying to implement InitializeComboBox
with the ValidationPanel
object is not working as expected.
The code follows the script example exactly, yet it fails to populate the ComboBox. The ComboBox's Style
property is set to Fill in Script.
The ComboBox properties for delimiters are default. The MsgBox functions display with the correct information, so the scripts are being fired and the expected values are set for the ComboboxItems string.
The project uses folders and the ComboBox is positioned on the folder's form. The event is connected to the folder script by selecting the ValidationPanel
object, then selecting the InitializeComboBox
procedure.
Answer / Solution:
The issue is that the ValidationForm_InitializeComboBox
method does not appear to have any effect on the ComboBox itself.
The Behavior
property is NOT set to Restricted Content, but is set to Free Content.
The workaround for this issue is to use the BeforeComboBoxDropDown
method to populate the data for the ComboBox.
Only the ValidationForm_BeforeComboBoxDropDown
method performs as expected.
Applies To:
Product | Version | Category |
---|---|---|
AXPRO | 5.5 | Script |
AXPRO | 6.0 | Script |