Adobe Dreamweaver Forums



Last 10 THreads :         Always need to install Flash Player (Last Post : bensmomtoo - Replies : 4 - Views : 5 )           »          First time install, need a little help. (Last Post : firstbat - Replies : 2 - Views : 5 )           »          loader onComplete firing, but TextField not disappearing (Last Post : Laura MS - Replies : 3 - Views : 4 )           »          FLA movie as nav bar? (Last Post : So Lame - Replies : 2 - Views : 3 )           »          files are one level too deep (Last Post : ricksepulveda - Replies : 0 - Views : 1 )           »          need check of site in IE7 please. (Last Post : yankeestonk - Replies : 7 - Views : 8 )           »          Please Help! Newbie PHP and DW question (Last Post : Rockyjd - Replies : 9 - Views : 10 )           »          RoboHelp Versioning (Last Post : Colum McAndrew - Replies : 1 - Views : 2 )           »          Import Word 2007 into RH6 (Last Post : Drewster413 - Replies : 8 - Views : 9 )           »          Re: Robohelp HTML Not Compiling and not responding (Last Post : Colum McAndrew - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , ,



Reply
  #1 (permalink)  
Old 08-01-2008, 01:06 AM
rocknrollcar
 
Posts: n/a
Diggs:
Default Help in binding data

In my project i have a component that gets data from the server and lists the
task details. I have the following AS code and MXMl code to display a combobox
for categories.

[Bindable]
private var taskCategories:ArrayCollection = new
ArrayCollection([{label:"Morning",category_id:1},{label:"Evening",c ategory_id:2}
]);



<mx:FormItem label="Category">
<mx:ComboBox height="23" width="162" id="task_category"
dataProvider="{taskCategories}"/>
</mx:FormItem>



Using Flex Debugger i found a warning

warning: unable to bind to property 'category_id' on class 'Object' (class is
not an IEventDispatcher)

Can anyone help on this issue. Thanks.

[Bindable]
private var taskCategories:ArrayCollection = new
ArrayCollection([{label:"Morning",category_id:1},{label:"Evening",c ategory_id:2}
]);



<mx:FormItem label="Category">
<mx:ComboBox height="23" width="162" id="task_category"
dataProvider="{taskCategories}"/>
</mx:FormItem>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-01-2008, 01:48 AM
Greg Lafrance
 
Posts: n/a
Diggs:
Default Re: Help in binding data

The code you attached does not give me the warning in the debugger, but
depending on how you use it, like if you use the data elements in a binding
situation you might, because although the ArrayCollection uses binding, your
data elements do not.

If it is possible to provide a more complete, and yet still simplified, code
example displaying the issue, we might be able to give more hints.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 05:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk