/build/static/layout/Breadcrumb_cap_w.png

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***

0 Comments   [ + ] Show comments

Answers (2)

Posted by: perceptus 9 years ago
White Belt
1
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())
}

Posted by: perceptus 9 years ago
White Belt
1

You can create an Event in the Form Designer for Change on Commit, and the populate the 2nd combo box during that event.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ