<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dinesh- Flex/AIR Blog &#187; AIR</title>
	<atom:link href="http://learnflexair.wordpress.com/category/uncategorized/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://learnflexair.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 11 Aug 2009 10:20:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='learnflexair.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/175ff968a9bd75e34a8c4095ae5d8dba?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Dinesh- Flex/AIR Blog &#187; AIR</title>
		<link>http://learnflexair.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://learnflexair.wordpress.com/osd.xml" title="Dinesh- Flex/AIR Blog" />
		<item>
		<title>Exporting Flex DataGrid To Excel by as3xls.swc</title>
		<link>http://learnflexair.wordpress.com/2009/08/11/exporting-flex-datagrid-to-excel-by-as3xls-swc/</link>
		<comments>http://learnflexair.wordpress.com/2009/08/11/exporting-flex-datagrid-to-excel-by-as3xls-swc/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 10:19:38 +0000</pubDate>
		<dc:creator>dineshblog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://learnflexair.wordpress.com/?p=74</guid>
		<description><![CDATA[I was trying to create an AIR app, where i need to export my  datagrid content to excel and give it for the user . I used as3xls-1.0.swc for the excel operation, thought of sharing my solution to the web:-)&#8230;

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=74&subd=learnflexair&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was trying to create an AIR app, where i need to export my  datagrid content to excel and give it for the user . I used as3xls-1.0.swc for the excel operation, thought of sharing my solution to the web:-)&#8230;</p>
<p><img class="alignnone size-full wp-image-77" title="ExcelWrite" src="http://learnflexair.files.wordpress.com/2009/08/excelwrite1.png?w=616&#038;h=813" alt="ExcelWrite" width="616" height="813" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/learnflexair.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/learnflexair.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/learnflexair.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/learnflexair.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/learnflexair.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=74&subd=learnflexair&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://learnflexair.wordpress.com/2009/08/11/exporting-flex-datagrid-to-excel-by-as3xls-swc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/110ddb3396c7d2914d096d44c763ec3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinesh</media:title>
		</media:content>

		<media:content url="http://learnflexair.files.wordpress.com/2009/08/excelwrite1.png" medium="image">
			<media:title type="html">ExcelWrite</media:title>
		</media:content>
	</item>
		<item>
		<title>Filtering Data in Flex DataGrid</title>
		<link>http://learnflexair.wordpress.com/2009/08/07/filtering-data-in-flex-datagrid/</link>
		<comments>http://learnflexair.wordpress.com/2009/08/07/filtering-data-in-flex-datagrid/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 10:45:55 +0000</pubDate>
		<dc:creator>dineshblog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://learnflexair.wordpress.com/?p=71</guid>
		<description><![CDATA[In the below example  i used webservice to get data for the datagrid, thought this could also help
the begginners how to fetch data through webservice and display in datagrid&#8230;
Now coming to the code,Flex has the powerful method for filtering the data in ArrayCollection.
This can be done by assigning filterFunction to the arrayCollection.
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=71&subd=learnflexair&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In the below example  i used webservice to get data for the datagrid, thought this could also help<br />
the begginners how to fetch data through webservice and display in datagrid&#8230;</p>
<p>Now coming to the code,Flex has the powerful method for filtering the data in ArrayCollection.<br />
This can be done by assigning filterFunction to the arrayCollection.</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; creationComplete=&#8221;initApp()&#8221;&gt;<br />
&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.rpc.soap.LoadEvent;<br />
import mx.events.ListEvent;<br />
import mx.controls.Alert;<br />
import mx.collections.ArrayCollection;<br />
import mx.rpc.events.FaultEvent;<br />
import mx.rpc.events.ResultEvent;</p>
<p>[Bindable]<br />
private var gridData:ArrayCollection;</p>
<p>/* on creationComplete,the wsdl data is loaded */<br />
private function initApp():void{<br />
webService.wsdl = &#8220;http://www.abundanttech.com/WebServices/DeadOrAlive/DeadOrAlive.asmx?WSDL&#8221;;<br />
webService.addEventListener(LoadEvent.LOAD,dataLoaded)<br />
webService.loadWSDL();<br />
}</p>
<p>/* once the dataloads,calling the particular method<br />
of the webservice to get the particular data set*/<br />
private function dataLoaded(e:LoadEvent):void{<br />
webService.getTodaysBirthdays.send();<br />
}</p>
<p>/* once we get the resultant data,the data assigned to the datgrid(this<br />
is an simple example for getting data from webservice) */<br />
private function resultHandler(e:ResultEvent):void{<br />
gridData = ArrayCollection(e.result.Tables.Table.Rows);<br />
total.text = gridData.length.toString();<br />
}<br />
/*<br />
Here once the refresh method called,<br />
Flex passes the each row data into the (applyFilter)function as an object<br />
*/<br />
private function filterGrid():void{<br />
gridData.filterFunction = applyFilter;<br />
gridData.refresh()<br />
total.text = gridData.length.toString();<br />
}<br />
/* This is the important function where<br />
we need to put our logic for filtering the data<br />
For True &#8211; the row value is displayed<br />
For False &#8211; the row value is filtered*/<br />
private function applyFilter(item:Object):Boolean{<br />
if(minAge.text &lt;= item.Age &amp;&amp; item.Age &lt;= maxAge.text )<br />
return true;<br />
else<br />
return false;<br />
}</p>
<p>/* Reseting the data is simple,since we are not deleting at anystage,<br />
the data will always remains in the memory */<br />
private function resetData():void{<br />
gridData.filterFunction = null;<br />
gridData.refresh()<br />
total.text = gridData.length.toString();<br />
minAge.text = &#8221;;<br />
maxAge.text = &#8221;;<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;<br />
&lt;mx:WebService id=&#8221;webService&#8221; result=&#8221;resultHandler(event)&#8221; /&gt;<br />
&lt;mx:DataGrid id=&#8221;dg&#8221; x=&#8221;10&#8243; y=&#8221;124&#8243; width=&#8221;498&#8243;  height=&#8221;274&#8243; dataProvider=&#8221;{gridData}&#8221; /&gt;<br />
&lt;mx:Label x=&#8221;147&#8243; y=&#8221;61&#8243; text=&#8221;Min Age:&#8221;/&gt;<br />
&lt;mx:Label x=&#8221;147&#8243; y=&#8221;98&#8243; width=&#8221;95&#8243; text=&#8221;No of Persons:&#8221;/&gt;<br />
&lt;mx:Text x=&#8221;253.5&#8243; y=&#8221;98&#8243; width=&#8221;124&#8243; id=&#8221;total&#8221;/&gt;<br />
&lt;mx:Label x=&#8221;277&#8243; y=&#8221;61&#8243; text=&#8221;Max Age:&#8221;/&gt;<br />
&lt;mx:Button x=&#8221;389&#8243; y=&#8221;59&#8243; label=&#8221;Filter&#8221; click=&#8221;filterGrid()&#8221;/&gt;<br />
&lt;mx:TextInput x=&#8221;209&#8243; y=&#8221;59&#8243; width=&#8221;33&#8243; height=&#8221;20&#8243; id=&#8221;minAge&#8221;/&gt;<br />
&lt;mx:TextInput x=&#8221;343&#8243; y=&#8221;59&#8243; width=&#8221;29.5&#8243; id=&#8221;maxAge&#8221;/&gt;<br />
&lt;mx:Button label=&#8221;Reset&#8221; click=&#8221;resetData()&#8221; x=&#8221;389&#8243; y=&#8221;96&#8243;/&gt;<br />
&lt;/mx:Application&gt;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/learnflexair.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/learnflexair.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/learnflexair.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/learnflexair.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/learnflexair.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=71&subd=learnflexair&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://learnflexair.wordpress.com/2009/08/07/filtering-data-in-flex-datagrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/110ddb3396c7d2914d096d44c763ec3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinesh</media:title>
		</media:content>
	</item>
	</channel>
</rss>