Re: [flexcoders] Data binding inside Repeater?

2009-08-14 Thread Roman Protsiuk
And what if Object would not be generic Object but rather class DataProviderContainer { [Bindable]public var dataProvider:ArrayCollection;} I assume your dynamic property dataProvider on Object is not bindable. Roman Protsiuk Software Engineer/Engineering Team Lead http://under.in.ua Kyiv,

Re: [flexcoders] Data binding inside Repeater?

2009-08-14 Thread Jon Gunnip
I was looking into a problem similar to this a few days ago. I noticed in the Repeater.as framework code, that it ignores changes to the dataProvider collection that are of type CollectionEventKind.UPDATE. Thus, if you modify an item in the underlying data provider, the repeater will not update.

Re: [flexcoders] data binding in textinput ?

2009-05-28 Thread Tom McNeer
Hi, On Thu, May 28, 2009 at 1:45 PM, luvfotography ygro...@all-digital-links.com wrote: How do I get databinding to work in textinput? I think you have the idea of databinding a little backwards. Basically, the bound variable ('userName' in your example) is used to bring data *in*. In

Re: [flexcoders] data binding in textinput ?

2009-05-28 Thread Manish Jethani
On Thu, May 28, 2009 at 11:15 PM, luvfotography ygro...@all-digital-links.com wrote: How do I get databinding to work in textinput? In this example below, I have a TextInput defined with the text bound to {userName}, when I run the app, and enter text into the TextInput field, I would like

RE:[flexcoders] Data binding

2008-08-17 Thread Scott
The display won't change unless you have a separate process watching the data to see if it changes (ala ajax). Your display will change when the application/class reads the data only. If you are concerned that the data will be inconsistent during a file read, or in other words, read while a file

Re: [flexcoders] Data Binding works/does not work

2008-08-09 Thread Sid Maskit
It works if you switch the second text field so it looks like this: mx:Text id=tab2 text=({nbItems}) {labels.label.(@loc == locale)} / So it seems as though somehow the compiler gets confused by the deeper XML parsing, and bypasses the subsequent binding call. Maybe somebody else has a better

Re: [flexcoders] Data Binding works/does not work

2008-08-09 Thread Sid Maskit
One more thing on this, since it only sets the binding to nbItems if that is done before the XML parsing, you could hack around the apparent bug in the following ugly manner: mx:Text id=tab2 text={(nbItems 0 ? '' : '') + labels.label.(@loc == locale)} ({nbItems}) / This sets the binding

Re: [flexcoders] Data Binding to Datagrid with complex data

2008-06-09 Thread Josh McDonald
[Bindable] public class ORLocationVO extends EventDispatcher { //... } May do the trick. -Josh On Tue, Jun 10, 2008 at 11:04 AM, donvoltz [EMAIL PROTECTED] wrote: Can someone help me to determine what I am doing wrong. I have a custom component that contains a datagrid. I am trying to

RE: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Tianzhen Lin
If personalData is a class itself, its class definition should also declare [Bindable], or emptstatus should be [Bindable] at least. Bindable is not recursive, and does not propagate. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Friday, December

Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Mark Shen
From: Tianzhen Lin [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, December 28, 2007 12:22:51 PM Subject: RE: [flexcoders] data binding question for Cairngorm? If personalData is a class itself, its class definition should also declare [Bindable], or emptstatus should

Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Muzak
PersonVO itself must be Bindable. - Original Message - From: Mark Shen [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, December 28, 2007 6:45 PM Subject: Re: [flexcoders] data binding question for Cairngorm? but I already have the following code in ModelLocator

Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Mark Shen
Subject: Re: [flexcoders] data binding question for Cairngorm? PersonVO itself must be Bindable. - Original Message - From: Mark Shen [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, December 28, 2007 6:45 PM Subject: Re: [flexcoders] data binding question for Cairngorm? but I

RE: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Tianzhen Lin
@yahoogroups.com Subject: Re: [flexcoders] data binding question for Cairngorm? yes. I have the code [Bindable] public class PersonVO implements IValueObject { public var firstname:String; .. } But I still have the error. Mark - Original Message From: Muzak [EMAIL PROTECTED

Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Muzak
: [flexcoders] data binding question for Cairngorm? yes. I have the code [Bindable] public class PersonVO implements IValueObject { public var firstname:String; ... } But I still have the error. Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders

RE: [flexcoders] data binding question

2007-12-20 Thread Tracy Spratt
I think that since there is no argument to the function, binding does not know when to execute. Try: text={getTotal(cost1.text,cost2.text)} private function getTotal(cost1:String,cost2:string):Number{ return (number(cost1) + Number(cost2)); Tracy

RE: [flexcoders] Data binding in a function call

2007-12-10 Thread Samuel R. Neff
you can't put a databinding expression in the middle of a script block. Try this instead: mx:LinkButton label={extLink} data={extLinkURL} click=loadXternalURL(LinkButton(event.currentTarget).data as String) id=LinkBtn2 / HTH, Sam --- We're Hiring!

Re: [flexcoders] Data binding will not be able to detect changes when using--I know I know

2007-06-01 Thread Troy Gilbert
I would expect you to only get that warning if you're using binding with the MXML property... if you're not using binding, then it shouldn't care (it'll just initialize the value at the time of instantiation). Does your MXML look like this: mx:Label text={arrayObj[0]} / I'm guessing you're

Re: [flexcoders] DATA BINDING giving me a hell of a time. Need help ASAP

2007-05-25 Thread Tom Chiverton
I have a list of Array Collections I need to bind to, but it will only let me declare one [Bindable] tag. All subsequent declerations give me a compile time error. Show us the code. Also, subject lines using words like 'ASAP' and 'NOW' and 'PLEASE!?!?!' don't help. Everyone wants their

Re: [flexcoders] data binding limitations?

2007-04-02 Thread Tom Chiverton
On Monday 02 Apr 2007, iko_knyphausen wrote: mx:XMLListCollection id=xlcUsers filterFunction=filterUser source={xmlSetup.lastResult.USER}/ What if you have the HTTPService result handler copy lastResult into some other variable, and bind to that instead ? -- Tom Chiverton Helping to

RE: [flexcoders] data binding limitations?

2007-04-02 Thread Tracy Spratt
Binding directly to lastResult is hard to debug. I advise using a result handler function to set an instance variable, and bind to that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iko_knyphausen Sent: Monday, April 02, 2007

RE: [flexcoders] Data binding will not be able to detect changes... ?

2007-03-29 Thread Tracy Spratt
] On Behalf Of Valy Sivec Sent: Tuesday, March 27, 2007 9:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Data binding will not be able to detect changes... ? Per my knowledge for Array and XMLList data binding won't detect data changes. I suggest you use XMLListCollection and the warning

Re: [flexcoders] Data binding will not be able to detect changes... ?

2007-03-28 Thread Valy Sivec
AM Subject: Re: [flexcoders] Data binding will not be able to detect changes... ? the whole model is bindable.. [Bindable] public class MyModel implements ModelLocator { ... ... public var DALocationsXML: XMLList; ... On 3/27/07, Tom Chiverton tom.chiverton@ halliwells. com wrote: On Tuesday 27

Re: [flexcoders] Data binding will not be able to detect changes... ?

2007-03-27 Thread Tom Chiverton
On Tuesday 27 Mar 2007, Greg Morphis wrote: How can I knock this warning out? [Bindable] -- Tom Chiverton Helping to advantageously restore cutting-edge platforms on: http://thefalken.livejournal.com This email is sent for and on behalf of

Re: [flexcoders] Data binding will not be able to detect changes... ?

2007-03-27 Thread Greg Morphis
the whole model is bindable.. [Bindable] public class MyModel implements ModelLocator { ... ... public var DALocationsXML:XMLList; ... On 3/27/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 27 Mar 2007, Greg Morphis wrote: How can I knock

Re: [flexcoders] Data binding will not be able to detect changes... ?

2007-03-27 Thread slangeberg
It's because the .default node is not bindable (it's an anonymous element of an xml object). Doesn't the warning mention something about not implementing the IEventDispatchable (or other!) interface? What is the best practice for this? I know you could point a bindable property to that node

RE: [flexcoders] Data binding will not be able to detect changes... ?

2007-03-27 Thread Tracy Spratt
:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Data binding will not be able to detect changes... ? Nah, the full warning is Data binding will not be able to detect changes to XMLList default, need an XML instance. I'll give that a shot though... On 3/27/07, slangeberg

Re: [flexcoders] Data Binding Issue

2007-03-22 Thread Tom Chiverton
On Tuesday 20 Mar 2007, madhukiranm wrote: [Bindable] tag before the declaration of the variable (in both MXML and Custom Component). Everything works fine except when the variable In the custom component, have you given it a default value, eg: [Bindable] public var

Re: [flexcoders] Data binding warning

2007-02-22 Thread Igor Costa
In fact Julien You have to care about it, the basic steps to using kind solution you it a must to not using like this. For example here's a property way to that. public class myModel extends Model { [bindable] public var connected:Boolean; } You could

Re: [flexcoders] Data binding warning

2007-02-22 Thread julien castelain
Thanks for the reply Igor, I made the appropriate changes and the warning disappeared :) On 2/23/07, Igor Costa [EMAIL PROTECTED] wrote: In fact Julien You have to care about it, the basic steps to using kind solution you it a must to not using like this. For example here's a property way

Re: [flexcoders] Data Binding warning -- PHP, Weborb for PHP

2007-01-15 Thread Tom Chiverton
On Sunday 14 January 2007 20:57, jason_panko wrote: Any suggestions? Mark the data provider variable [Bindable]. -- Tom Chiverton Helping to simultaneously monetize synergistic patterns This email is sent for and on behalf of Halliwells

Re: [flexcoders] Data Binding warning -- PHP, Weborb for PHP

2007-01-14 Thread Clint Modien
I've never ran the php example but it sounds like you're missing a [Bindable] meta data tag on your dataProvider1 variable. I also corssposted this to the weborb list. You'll get the best support on weborb here: http://tech.groups.yahoo.com/group/flashorb/ On 1/14/07, jason_panko [EMAIL

RE: [flexcoders] Data binding issue

2006-10-14 Thread Matt Chotin
Are you relying on knowing when the 0th element of image changes? If not you can ignore the warning. If you do care you may need to write your own collectionChange event handler on the XMLListCollection to update correctly. From: flexcoders@yahoogroups.com

RE: [flexcoders] Data Binding Question - will both work?

2006-09-20 Thread Matt Chotin
I think we made that change between beta3 and release so if things are working for you now I believe youre set. But your preferred choice is preferred by us too I think J Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nwebb Sent: Tuesday,

Re: [flexcoders] Data Binding Question - will both work?

2006-09-20 Thread nwebb
Thanks Matt :]Much appreciated.On 9/20/06, Matt Chotin [EMAIL PROTECTED] wrote: I think we made that change between beta3 and release so if things are working for you now I believe you're set. But your preferred choice is preferred by us too I think

RE: [flexcoders] data binding question

2005-12-15 Thread Matt Chotin
No, source is a compile-time flag. You'll want to look into HTTPService for dynamically loading this stuff. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sam Sent: Thursday, December 15, 2005 1:02 PM To: flexcoders@yahoogroups.com

Re: [flexcoders] data binding remoting data . . .

2005-07-07 Thread Tarik Ahmed
Hi Chris. It sounds like you mostly got this working; are you saying you're getting stuck on selectedIndex part of it? But in general ya... I would an mx:RemoteObject, with a method where upon completion have a result=resultHandler(event.result) that assigns the resulting data to a local