开发者

how can i passing value to combobox in flex?

开发者 https://www.devze.com 2022-12-28 00:03 出处:网络
i have combobox in one screen(namely 1) and i need to pass the selected value of the combobox to the anoth开发者_StackOverflow中文版er combobox which is in the another screen(namely 2) and the passed

i have combobox in one screen(namely 1) and i need to pass the selected value of the combobox to the anoth开发者_StackOverflow中文版er combobox which is in the another screen(namely 2) and the passed value should be selected by default.


In simple terms (if both comboboxes have plain strings or same set of objects in their data providers):

combobox2.selectedItem = combobox1.selectedItem;

If that is not the case, you will have to get a mapping from items of first combobox to the second one.

0

精彩评论

暂无评论...
验证码 换一张
取 消