Here is a simple example.  It actually uses a Timer to poll the
HTTPService, but you can ignore that part.

http://www.cflex.net/showFileDetails.cfm?ObjectID=560

 

Also note that if your data is deeply nested in the xml nodes, you may
need to use labelFunction to display it.  There is an example of  using
labelFunction with XML on the same site above.

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fidel Viegas
Sent: Friday, May 23, 2008 2:32 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Populating Datagrid from Database

 

On Fri, May 23, 2008 at 1:20 AM, kenny14390 <[EMAIL PROTECTED]
<mailto:kenny14390%40yahoo.com> > wrote:
>
> I am calling a PHP page, which reads my entire database and formats it
> to output as valid XML. How can I set this as the data provider for a
> Datagrid component? I know what the columns are, but not the number of
> rows nor the data (obviously).
>

Hi Kenny,

Have a look at the HTTPService component.

Fidel.

 

Reply via email to