Welcome, Guest. Please login or register.
Did you miss your activation email?
02/07/12, 08:53
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)
| | |-+  Combobox + Dataset - select what data to show [Solved]
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Combobox + Dataset - select what data to show [Solved]  (Read 4355 times)
lambda
Server what's that
*
Posts: 13


View Profile
« on: 03/20/08, 09:33 »

Hi All
I need a little advice or tip Wink
this is the question... my dataset gets data from php[sql]  through a xml schema.
I need 2 values from this php, 1st is a numbered index, 2nd is a label.
The combo shows all (with the setting i give to the dataset) => 2, Label.
How I can "hide" the first? (but I need it to query the sql).

Hope it's clear enough!

Thank you so much
lambda
« Last Edit: 03/21/08, 05:33 by lambda » Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #1 on: 03/20/08, 10:46 »

If you use automatic data binding you can avoid this, but probably after populating the combobox, you can remove the first element: myCombo.removeItemAt(0)

Jorge
Logged

lambda
Server what's that
*
Posts: 13


View Profile
« Reply #2 on: 03/20/08, 11:39 »

Thank You Jorge
but i can't get it!

the dataset has a field name in schema-tab like "ID" wich is a number.
The combo gets the values correctly but shows "obviously": ID,Label.
I don't want to show the ID in the combo, but it is still needed for feed-back with the db.

Thank you again
Logged
lambda
Server what's that
*
Posts: 13


View Profile
« Reply #3 on: 03/21/08, 05:32 »

Hi
if it interests the solution were:
my_combo.labelField= "LABEL";

thanks all.
Grin


Logged
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!