Actually this is a good question, and I am in the same boat and also do
not know the correct way to handle this.
I have a value object in my data model that came from a table in a
database via a RemoteObject call. The VO has an int field that is a
foreign key reference to a record in the people
I think you could get at your data field from wherever you need it by
referencing like so:
((customer_name as ComboBox).selectedItem as Customer).customer_id;
So for example you could bind a label to that.
T
--- In flexcoders@yahoogroups.com, George Georgiou [EMAIL PROTECTED]
wrote:
Hi
I just found a solution. It appears that Flex does not support setting
data_field or selectedValue properties. (Why not?!?! This seems like a
basic core feature) Ben Forta created a custom combo to sort of do it:
http://www.forta.com/blog/index.cfm/2006/11/22/Flex-ComboBox-With-select\
Here's the code for the Adobe BindableComboBox.mxml that's generated by
the ColdFusion Application Wizard. This will do what you want.
?xml version=1.0 encoding=utf-8?
!--
\
//
// Copyright (C) 2003-2006 Adobe
This simple task is really very confusing :-(
I have been through tutorials, references with comboboxes and Arrays and
this really appears very simple there. However when it comes to remoteobject
it gets extremenly complicated :-(
My guess is.. is there any easy way to convert my ArrayCollection
: Monday, October 15, 2007 12:30 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox populate list with remoteobject
This simple task is really very confusing :-(
I have been through tutorials, references with comboboxes and Arrays and
this really appears very simple
is not and what is
your goal?
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of George Georgiou
Sent: Monday, October 15, 2007 3:30 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox populate list with remoteobject
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Here is what I have done to get a RemoteObject Array into the ComboBox.
mx:ComboBox id=cbxSchoolBuilding enabled=true
change=DisplayBuildingTeachers(); dataProvider={SchoolBuildingsDP}
labelField=LABEL/mx:ComboBox
Then within the mx:Script
8 matches
Mail list logo