/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Setting Combobox Dependencies Based on Selection (ASE)

08/31/2015 1372 views
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

Comments


All Answers

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())
}

Answered 09/08/2015 by: perceptus
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.

Answered 09/08/2015 by: perceptus
White Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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