Probably the issue is that some objects you are modifying are not sending PropertyChangeEvents. There is no native support in the player for detecting a change to a property of an object - either strongly typed or anonymous. This is unfortunately because the data binding functionality flex uses requires that to work.
For strongly typed classes, there is the [Bindable] keyword you can add at the class or property level. It does a little code gen at compile time and generates a set method which fires the property change event. For anonymous objects, you can make the object bindable only by wrapping your anonymous object instances in an mx.utils.ObjectProxy. As long as all of your set calls use the proxy, the changes will be notified. If you have a hierarchical object, when you call the get method on the ObjectProxy, it wraps the returned object in another ObjectProxy so we can track changes made to properties of the property. The Http service has the ability to automatically wrap returned instances in proxies - the makeObjectsBindable attribute. I'd make sure you are setting that to true... also hopefully you can figure out in the debugger why some changes are not sending those events. Another helpful tidbit is that the ArrayCollection class listens for PropertyChangeEvents and turns them into CollectionEvents which are what the List controls are really listening for. Jeff ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Cashorali, Tanya M. Sent: Monday, February 12, 2007 8:02 AM To: [email protected] Subject: [flexcoders] HTTPService updating database too frequently?? I have datagrids whose dataproviders are the lastResult of httpservice calls. The HTTPService calls are calling PHP scripts that update, remove, and create rows. I have a function that lets me double click an item in a datagrid and pop up a window which then lets me edit the info. The only problem is, the data doesn't always update right away even though I am explicitly calling a refresh method after every change. It sometimes works right away, then other times it lags and the change doesn't show up until I edit something else. Should I be doing this in a different manner? Thanks, Tanya THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION.

