<?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/"
	>

<channel>
	<title>BLUEice studios &#187; Flex</title>
	<atom:link href="http://www.blueicestudios.com/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blueicestudios.com</link>
	<description>I make stuff for you :)</description>
	<lastBuildDate>Wed, 20 Jul 2011 09:07:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>5 Minute Flex Data Grid</title>
		<link>http://www.blueicestudios.com/5-minute-flex-data-grid/</link>
		<comments>http://www.blueicestudios.com/5-minute-flex-data-grid/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:21:15 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Datagrid]]></category>

		<guid isPermaLink="false">http://www.blueicestudios.com/?p=22</guid>
		<description><![CDATA[So you want a quick solution for a data grid with inline edit, add, delete, search and sorting? I&#8217;ve got just the answer for you. &#8230;..Adobe Flex. Finished Data Grid: Demo So lets start, The data used for the grid will be pulled from a MySQL database. If you don&#8217;t have one ready, use this [...]]]></description>
			<content:encoded><![CDATA[<p>So you want a quick solution for a data grid with inline edit, add, delete, search and sorting? I&#8217;ve got just the answer for you. &#8230;..Adobe Flex.</p>
<p><span id="more-22"></span></p>
<p>Finished Data Grid: <a title="Demo" href="http://www.blueicestudios.com/datagrid/" target="_blank">Demo</a></p>
<p>So lets start, The data used for the grid will be pulled from a MySQL database.</p>
<p>If you don&#8217;t have one ready, use this to get an idea.</p>
<pre>CREATE DATABASE `flex_grid` ;

CREATE TABLE `flex_grid`.`grid_data` (
`user_id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`user_name` VARCHAR( 22 ) NOT NULL ,
`user_email` VARCHAR( 60 ) NOT NULL ,
`user_phone` VARCHAR( 20 ) NOT NULL ,
`user_mobile` VARCHAR( 20 ) NOT NULL ,
PRIMARY KEY ( `user_id` )
) ENGINE = InnoDB;

INSERT INTO `flex_grid`.`grid_data` (
`user_id` ,
`user_name` ,
`user_email` ,
`user_phone` ,
`user_mobile`
)
VALUES (
NULL , 'Joe Blow', 'joe@blow.com', '123-456-7890', '321-654-0987'
);</pre>
<p>Ok, once you get this running or if you have your own lets start.</p>
<h3>Step 1: Creating the Flex Project</h3>
<p>Open up Adobe Flex if you don&#8217;t already have it open&#8230;&#8230; Got it open? Ok good.</p>
<p>Now navigate to File &gt; New &gt; Flex Project</p>
<p><a href="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig1.jpg" target="_blank"><img class="alignnone size-thumbnail wp-image-23" title="fig1" src="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig1-150x150.jpg" alt="fig1" width="150" height="150" /></a></p>
<p>Next lets set up the project.</p>
<p>Create a project name and choose PHP from the dropdown list.</p>
<p><a href="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig2.jpg" target="_blank"><img class="alignnone size-thumbnail wp-image-24" title="fig2" src="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig2-150x150.jpg" alt="fig2" width="150" height="150" /></a></p>
<p>Hit Next,</p>
<p>Now create a folder where you want the project to be added as well as a URL to the project and click Validate Configuration.</p>
<p><a href="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig3.jpg" target="_blank"><img class="alignnone size-thumbnail wp-image-25" title="fig3" src="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig3-150x150.jpg" alt="fig3" width="150" height="150" /></a></p>
<p>Hit Next, the project will be created. Then simple hit Finish.</p>
<h3>Step2: Create Application From Database.</h3>
<p>You should now have a project with a blank blue canvas.</p>
<p>Navigate to Data &gt; Create Application from Database&#8230;</p>
<p><a href="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig4.jpg"><img class="alignnone size-thumbnail wp-image-28" title="fig4" src="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig4-150x126.jpg" alt="fig4" width="150" height="126" /></a></p>
<p>Click &#8220;New&#8221; to setup a new connection..</p>
<p><a href="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig5.jpg"><img class="alignnone size-thumbnail wp-image-29" title="fig5" src="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig5-150x150.jpg" alt="fig5" width="150" height="150" /></a></p>
<p>Give the connection a name and hit next&#8230;</p>
<p><a href="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig6.jpg"><img class="alignnone size-thumbnail wp-image-30" title="fig6" src="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig6-150x150.jpg" alt="fig6" width="150" height="150" /></a></p>
<p>The MySQL Connection info and hit next..</p>
<p><a href="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig7.jpg"><img class="alignnone size-thumbnail wp-image-31" title="fig7" src="http://www.blueicestudios.com/wp-content/uploads/2009/07/fig7-150x150.jpg" alt="fig7" width="150" height="150" /></a></p>
<p>Now just hit Finish.</p>
<p>From here it will create the grid.</p>
<p>Now, navigate to File &gt; Export &gt; Release Build.</p>
<p>Pretty straight forward from here on.</p>
<p>Finished Data Grid: <a title="Demo" href="http://www.blueicestudios.com/datagrid/" target="_blank">Demo</a></p>
<p>I hope this helped you with learning a nice feature of Adobe Flex.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blueicestudios.com/5-minute-flex-data-grid/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

