Welcome, Guest. Please login or register.
Did you miss your activation email?
02/09/12, 03:07
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  V2 Components (Flash MX 2004 - Flash 8) (Moderators: vesa kortelainen, Ronald Wernecke, Jorge Solis, ..:: Mazhar Hasan ::.., papachan)
| | |-+  dynamically selecting combobox option
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: dynamically selecting combobox option  (Read 1472 times)
POUND!
Server what's that
*
Posts: 4


View Profile Email
« on: 09/28/09, 18:46 »

Hi everyone,

I am loading data from a mysql db into a datgrid.  WHen the user selects a row, I have a script which loads the selected items details in dynamic text boxes, radio button group and comboBox from where the user can then change the details and save back to the db.

Everything is working fin  however I don't know how to target the combobox option so that it displays when a row from the dg is selected.

This is what I'm trying at the moment...

Code:
if ($category == "archi") {
category2.value.data = archi;
} else if ($category == "exteriors") {
category2.value.data = exteriors;
} else if ($category == "product") {
category2.value.data = product;
} else if ($category == "flora") {
category2.value.data = flora;
} else if ($category == "farFlung") {
category2.value.data = farFlung;
} else if ($category == "fetch") {
category2.value.data = fetch;
} else if ($category == "folly") {
category2.value.data = folly;
}

I've also tried the same but without the .data

Any advice would be hugely appreciated.

Cheers
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« Reply #1 on: 09/29/09, 03:49 »

try with selectedItem
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!