Setting Combobox Dependencies Based on Selection (ASE)
I am curious as to whether or not it is possible to setup a dependency on a combobox in the powershell script. Basically I want the user to select from the first combobox and then based off what they select the other boxes populate with the correct choices.
Example:
Combo1: Microsoft is selected from list
Combo2: Lists the versions of Microsoft Windows (from a pre-poulated list of course)
Combo3: Lists the types of processor architecture.
***Note: This is just an example but hopefully the concept is understood***
Example:
Combo1: Microsoft is selected from list
Combo2: Lists the versions of Microsoft Windows (from a pre-poulated list of course)
Combo3: Lists the types of processor architecture.
***Note: This is just an example but hopefully the concept is understood***
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
perceptus
9 years ago
If you setup an event for the SelectionChangeCommited event in the Script Form Designer. You can than manage how to add items to the other combos.
I have 2 combo boxs on a form. 1 Event handler for Combobox1 with below code
function ComboBox1SelectionChangeCommitted( $object ){
$ComboBox2.Items.add($combobox1.SelectedItem.ToString())
}
I have 2 combo boxs on a form. 1 Event handler for Combobox1 with below code
function ComboBox1SelectionChangeCommitted( $object ){
$ComboBox2.Items.add($combobox1.SelectedItem.ToString())
}
Posted by:
perceptus
9 years ago