[flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread T
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

[flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread T Bone
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

[flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread T
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\

[flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread Randy Martin
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

Re: [flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread George Georgiou
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

RE: [flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread Alex Harui
: 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

RE: [flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread Tracy Spratt
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

Re: [flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread Graham Pearson
-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