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 autoschediastically mesh one-to-one deliverables
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


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 1:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] data binding limitations?

 

Hello everyone,

I am experiencing some very strange behavior regarding data binding.
First off, would anyone know why the following XMLListCollection does
not bind successfully to its source,

mx:XMLListCollection id=xlcUsers filterFunction=filterUser
source={xmlSetup.lastResult.USER}/

The xmlSetup is a HTTPService that returns a list of user accounts in
e4x format. The moment I add a binding tag, like the one below, the
XMLListCollection has all the data I expect. 

mx:Binding destination=xlcUsers.source
source=xmlSetup.lastResult.USER /

I have several XMLListCollections bound to HTTPService results, and I
never had to create explicit bindings. 

The second question is maybe related: Are there limits how many bindings
you can have in an application? It seems to me that, as the application
grows, and as I am adding more and more databound controls, previously
succesful databound controls loose their bindings silently. They can
be brought back by explicit calls to executeBindings but that sort of
defies the purpose of having it done automatically - if you have to be
explict, you may as well assign values upon change events...

Am I missing something...or does anyone else have similar experiences?

Thanks much

Iko

 

 



[flexcoders] data binding limitations?

2007-04-01 Thread iko_knyphausen

Hello everyone,

I am experiencing some very strange behavior regarding data binding.
First off, would anyone know why the following XMLListCollection does
not bind successfully to its source,

mx:XMLListCollection id=xlcUsers filterFunction=filterUser
source={xmlSetup.lastResult.USER}/

The xmlSetup is a HTTPService that returns a list of user accounts in
e4x format. The moment I add a binding tag, like the one below, the
XMLListCollection has all the data I expect.

mx:Binding destination=xlcUsers.source
source=xmlSetup.lastResult.USER /

I have several XMLListCollections bound to HTTPService results, and I
never had to create explicit bindings.

The second question is maybe related: Are there limits how many bindings
you can have in an application? It seems to me that, as the application
grows, and as I am adding more and more databound controls, previously
succesful databound controls loose their bindings silently. They can
be brought back by explicit calls to executeBindings but that sort of
defies the purpose of having it done automatically - if you have to be
explict, you may as well assign values upon change events...

Am I missing something...or does anyone else have similar experiences?

Thanks much

Iko