Page 1 of 1

Data Grid not updating

Posted: Thu Aug 18, 2011 8:32 am
by technoducky
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

Re: Data Grid not updating

Posted: Thu Aug 18, 2011 12:06 pm
by Klaus
Hi Dan,

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


Best

Klaus

Re: Data Grid not updating

Posted: Fri Aug 19, 2011 8:43 am
by technoducky
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.

Re: Data Grid not updating

Posted: Thu Aug 25, 2011 10:22 pm
by jmjared
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!

Re: Data Grid not updating

Posted: Thu Aug 25, 2011 11:10 pm
by bn
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