Read data from PHP into List Control of Flex.

This is similar to that of “read data into combobox control from PHP ” i posted on the other day.

Whatever let me explain this also.

First the PHP page looks like this.


<TYPE name=”kumar”/>

<TYPE name=”Gandhi”/>


Now we have to use the HttpService and list control in flex to get the data into.

<mx:HttpService id=”srvMain” url=”one.php” useProxy=”false”/>

<mx:List id=”mylist” dataProvider=”{srvMain.lastResult.PRODUCT.TYPE}” dataField=”name” />

Now the data from PHP sits into the List Control.The main thing to remember here is that the Properties dataProvider (List control),dataField(List Control).

Thats all for now Leave any comments for suggestions.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: