Data Grid not updating

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
technoducky
Posts: 2
Joined: Wed Aug 17, 2011 3:56 pm

Data Grid not updating

Post by technoducky » Thu Aug 18, 2011 8:32 am

I have a data grid form which is populated with data from an XML webservice, when an item in the data grid is selected the data in the data grid is cleared then new data is put in, this is done by deleting the array then repopulating the array, this works when done from the command window but not in the app itsself, I thaught it could be because the table is updated when it is clicked, i.e. itc annot update as it is calling itsself to be updated.
Should also mention I have tried using "RefreshList" and "ResetControl" aswell and this did not help.

Anyone have any ideas?
Thanks,
Dan

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid not updating

Post by Klaus » Thu Aug 18, 2011 12:06 pm

Hi Dan,

please check this thread, maybe this is the same problem?
http://forums.runrev.com/phpBB2/viewtop ... f=7&t=8810


Best

Klaus

technoducky
Posts: 2
Joined: Wed Aug 17, 2011 3:56 pm

Re: Data Grid not updating

Post by technoducky » Fri Aug 19, 2011 8:43 am

That works now, the problem was I was using a launcher app to save user preferrnaces on Android and since there was no data grid on the launcher app the Data Grid API was not included in the build, it works now once I added a data grid to the launcher app and set it's visibility to false.

jmjared
Posts: 10
Joined: Thu Mar 24, 2011 5:20 am

Re: Data Grid not updating

Post by jmjared » Thu Aug 25, 2011 10:22 pm

Hi Technoducky,

you mentioned that you are populating data from an XML webservice... I've been trying to do that... can you help? im pretty frustrated.. Thanks!

im using google's API and the out put is in XML.. I want to populate into a data grid..

Thank you!

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4166
Joined: Sun Jan 07, 2007 9:12 pm

Re: Data Grid not updating

Post by bn » Thu Aug 25, 2011 11:10 pm

Hi jmjared,

have a look at Trevor Devore's stack xmlAndArrays in RevOnline

http://revonline2.runrev.com/stack/571/XMLAndArrays

once you convert the xml to an array you can access the data easily and can also feed an array to the datagrid.

Kind regards

Bernd

Post Reply