Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-14-2008, 07:55 PM   #1
Registered User
Join Date: Feb 2008
Posts: 6
Question refresh a datagrid content

Hey guys,
I'm new to flex and I'm stuck with a small problem...
i have a XML file which is the output of a MySQL table. Now, i have a httpservice that loads this XML file then with the result event send the data to a datagrid. Now the problem is that the table is getting updated once an hour and the XML that it outputs also gets updated, to get the table updated i wanted to add a "refresh" button to reload the data from the new XML file and show it on the datagrid.. i tried calling the send() function of the httpservice after clicking on the refresh button and then use the arraycollection refresh() but no luck there..
Is there any way to get the httpservice reload the XML file and then update the datagrid to show it?
Thank you for taking the time to trying to help me
Buha124a is offline   Reply With Quote
Old 03-18-2008, 12:52 PM   #2
Registered User
Join Date: Mar 2008
Posts: 3


I had the same problem for a project of mine. I stopt using the httpservice and started to use remoteobjects this is working fine and have no problems updating my datagrid whit a refresh button.
I use amfphp and do not now if you are using that aswell but i hope that this is wat you need.
here is a little tutorial : http://www.sephiroth.it/tutorials/fl..._remoteobject/
Burner is offline   Reply With Quote
Old 03-20-2008, 06:21 PM   #3
Registered User
Join Date: Mar 2008
Posts: 22

Can you verify that you are getting the updated xml file after calling send() again? Ii guess I'm not sure if the problem is that you're not getting the data back or if it's just the datagrid not refreshing.
lemonizer is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid REFRESH Problem manuraj.dhanda Flex 2, 3 & 4 3 07-13-2007 11:59 AM
DataGrid content replace dynamically tiru Components 0 06-07-2006 08:46 AM
Remembering DataGrid scroll position after a refresh chickentsunami Components 1 09-14-2005 02:54 PM
DataGrid Content Question Lienne ActionScript 2.0 9 08-05-2005 09:24 PM
XML and menutext content sanderH Components 1 07-21-2004 06:01 PM

All times are GMT. The time now is 08:29 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.