<?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>SherifAbdou - The Design Blog &#187; ColdFusion</title>
	<atom:link href="http://sherifabdou.com/category/coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://sherifabdou.com</link>
	<description>Web Design Resources &#38; Tutorials to help you design the best website!</description>
	<lastBuildDate>Fri, 27 Aug 2010 03:51:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Creating Customs Tags in Coldfusion; An example</title>
		<link>http://sherifabdou.com/2008/10/creating-customs-tags-in-coldfusion-an-example/</link>
		<comments>http://sherifabdou.com/2008/10/creating-customs-tags-in-coldfusion-an-example/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 01:18:04 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=648</guid>
		<description><![CDATA[
In this example I will show you how to create a Custom tag in ColdFusion. The idea of a Custom tag is to allow you to package chunks of code into reusable modules that you can then reuse through out your project. They are similar to UDF (User Defined Functions) with the exception that Custom [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sherifabdou.com/2008/10/creating-customs-tags-in-coldfusion-an-example/"rel="nofollow" ><img src="http://sherifabdou.com/cfusion/CustomTagExample/coldfusion.jpg" alt="ColdFusion Image" title="Creating Customs Tags in Coldfusion; An example" /></a><br />
In this example I will show you how to create a Custom tag in ColdFusion. The idea of a Custom tag is to allow you to package chunks of code into reusable modules that you can then reuse through out your project. They are similar to UDF (User Defined Functions) with the exception that Custom tags are self-contained, have a specific purpose and goal-oriented. In addition, one does not have to understand how exactly the Custom Tag works, all you do is plug in the variables and watch the tag do it&#8217;s work.<br />
<span id="more-648"></span><br />
Now to put Custom tags to good use, you will want them to accept variables and return variables. You do that by using the ATTRIBUTES scope, and the CALLER Scope. The ATTRIBUTES scope accepts variables and the CALLER scope is what returns the variables. These only pertain to Custom tags and should not be used anywhere else ex: UDF, or inside a CFC. The only place these scopes should be used is in a Custom Tag. </p>
<p>In addition, your Custom tags should be placed in the specified folder that can be found in the ColdFusion admin panel. If you cannot access the ColdFusion admin panel due to being on a shared host service then you place the Custom Tags in the current folder of where your tag is used. For Example if I have a folder called admin, and in the admin i have login.cfm and I am using a Custom Tag then the custom tag would be in the same folder as the login.cfm file. </p>
<p>After you place them in the right folder then you can use the tag like this <cf_nameOfTemplate>. To have the template accept attributes and return attributes you do</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #66cc66;">&lt;</span>cf_nameOfTemplate myName=<span style="color: #ff0000;">&quot;#myInputName#&quot;</span> returnedVariable=<span style="color: #ff0000;">&quot;myNameReturned&quot;</span><span style="color: #66cc66;">&gt;</span>
<span style="color: #808080; font-style: italic;">//you can then use it like this</span>
<span style="color: #66cc66;">&lt;</span>cfoutput<span style="color: #66cc66;">&gt;</span>
<span style="color: #808080; font-style: italic;">#myNameReturned#</span>
<span style="color: #66cc66;">&lt;/</span>cfoutput<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>Inside the Custom Tag, you would have something like this</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #66cc66;">&lt;</span>cfparam <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;ATTRIBUTES.myName&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">//notice the variableName type</span>
&nbsp;
<span style="color: #66cc66;">&lt;</span>cfparam <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;returnedVariable&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;variableName&quot;</span><span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>To return the variable you can do something like this</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #66cc66;">&lt;</span>cfset <span style="color: #0066CC;">CALLER</span><span style="color: #66cc66;">&#91;</span><span style="color: #0066CC;">ATTRIBUTES</span>.<span style="color: #006600;">returnedVariable</span><span style="color: #66cc66;">&#93;</span>=<span style="color: #0066CC;">Attributes</span>.<span style="color: #006600;">myName</span><span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>This is just scratching the surface of Custom Tags, I will explain more as this week progresses but this should give you enough rope to try some stuff on your own.</p>
<p>Here is the source and a working example.  <a href="http://sherifabdou.com/cfusion/CustomTagExample/index.cfm"> Click Here for the Example </a><br />
Custom Tag</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfparam</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ATTRIBUTES.returnVariable&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;variablename&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfparam</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ATTRIBUTES.searchName&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfparam</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ATTRIBUTES.datasourceName&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;cfartgallery&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfquery</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myQuery&quot;</span> <span style="color: #000066;">datasource</span>=<span style="color: #ff0000;">&quot;#ATTRIBUTES.datasourceName#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	SELECT Description ,ArtName
    FROM ART
    WHERE Description LIKE '%#ATTRIBUTES.searchName#%' OR ARTNAME LIKE '%#ATTRIBUTES.searchName#%'
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cfquery<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfset</span> Caller<span style="color: #66cc66;">&#91;</span>ATTRIBUTES.returnVariable<span style="color: #66cc66;">&#93;</span> = myQuery<span style="color: #000000; font-weight: bold;">&gt;</span></span></pre></div></div>

<p>Main Index.cfm</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;meta</span> <span style="color: #000066;">http-equiv</span>=<span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Untitled Document<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfform<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfinput</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mySearchName&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Search&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cfform<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;hr</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfif</span> isDefined<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;FORM.mySearchName&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cf_myCFXTAG</span>  <span style="color: #000066;">searchName</span>=<span style="color: #ff0000;">&quot;#mySearchName#&quot;</span> <span style="color: #000066;">returnVariable</span>=<span style="color: #ff0000;">&quot;myReturnedQuery&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;table</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">align</span>=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tr<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;th<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            	ArtName
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/th<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;th<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            	Description
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/th<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tr<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cfoutput</span> <span style="color: #000066;">query</span>=<span style="color: #ff0000;">&quot;myReturnedQuery&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tr<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;td<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            	#artName#	
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;td<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            #Description#
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/td<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tr<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cfoutput<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/table<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cfif<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/10/creating-customs-tags-in-coldfusion-an-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing Paramaters using HTTPService in Flex to ColdFusion</title>
		<link>http://sherifabdou.com/2008/09/passing-paramaters-using-httpservice-in-flex-to-coldfusion/</link>
		<comments>http://sherifabdou.com/2008/09/passing-paramaters-using-httpservice-in-flex-to-coldfusion/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 04:17:37 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ColdFusion CFM]]></category>
		<category><![CDATA[flashvars]]></category>
		<category><![CDATA[flex HTTPService Example]]></category>
		<category><![CDATA[HTTPService Flex]]></category>
		<category><![CDATA[RemoteObject]]></category>
		<category><![CDATA[WebService]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=366</guid>
		<description><![CDATA[
This Example involves passing parameters from Flex to ColdFusion and then having ColdFusion Process what we need and sending it back to flex via flashvars. The HTTPService class is much slower than say using the RemoteObject class or even the WebService class but If you are not doing any heavy lifting like this example then [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sherifabdou.com/2008/09/passing-paramaters-using-httpservice-in-flex-to-coldfusion/"rel="nofollow" ><img src="http://www.sherifabdou.com/rohin/http.jpg" alt="http Passing Paramaters using HTTPService in Flex to ColdFusion"  title="Passing Paramaters using HTTPService in Flex to ColdFusion" /></a><br />
This Example involves passing parameters from Flex to ColdFusion and then having ColdFusion Process what we need and sending it back to flex via flashvars. The HTTPService class is much slower than say using the RemoteObject class or even the WebService class but If you are not doing any heavy lifting like this example then you should not be seeing any performance difference. Instead of a CFC file we use a CFM file and the parameters being passed are actually in the URL of the CFM file and not to a function. For Example when You Enter your name it will be like http://mySite.com/myFile.cfm?yourName=ColdFusion.  <a href="http://sherifabdou.com/cfusion/flashVarsEx/site.swf" rel="shadowbox[post-366]">Click Here for the Example and the Source Code is Enabled.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/09/passing-paramaters-using-httpservice-in-flex-to-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RemoteObject Class in Flex and ColdFusion Example</title>
		<link>http://sherifabdou.com/2008/09/remoteobject-class-in-flex-and-coldfusion-example/</link>
		<comments>http://sherifabdou.com/2008/09/remoteobject-class-in-flex-and-coldfusion-example/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 21:45:47 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[CFC]]></category>
		<category><![CDATA[CFM]]></category>
		<category><![CDATA[CFML]]></category>
		<category><![CDATA[flex remote object coldfusion]]></category>
		<category><![CDATA[flex remoteobject example]]></category>
		<category><![CDATA[RemoteObject]]></category>
		<category><![CDATA[RemoteObject Example]]></category>
		<category><![CDATA[the messageagents destination must be set to send messages]]></category>
		<category><![CDATA[[rpc fault faultstring=[messagingerror message=the messageagents destination must be set to send messages ] faultcode=invokefailed faultdetail=couldnt establish a connection to ]]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=364</guid>
		<description><![CDATA[
This Example uses the RemoteObject Class/MXML Tag in Flex to send some parameters to a ColdFusion CFC file, the ColdFusion CFC file then processes the parameters that Flex sent it then sends the results back which we display in Flex.  The Example is simple and straightforward and you can use this as a stepping stone [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sherifabdou.com/2008/09/remoteobject-class-in-flex-and-coldfusion-example/"rel="nofollow" ><img src="http://www.sherifabdou.com/rohin/remoteflex.jpg" alt="remoteflex RemoteObject Class in Flex and ColdFusion Example"  title="RemoteObject Class in Flex and ColdFusion Example" /></a><br />
This Example uses the RemoteObject Class/MXML Tag in Flex to send some parameters to a ColdFusion CFC file, the ColdFusion CFC file then processes the parameters that Flex sent it then sends the results back which we display in Flex.  The Example is simple and straightforward and you can use this as a stepping stone to create bigger applications. You can, for example query up a Database from ColdFusion then have flex send some parameters which ColdFusion can take and determine for example to delete,insert,filter, something from the Database.  A couple of things you need to take note of. 1) You must set the <span class="MXMLDefault_Text">destination=&#8221;</span><span class="MXMLString">ColdFusion</span><span class="MXMLDefault_Text">&#8221; or you will get this error: </span></p>
<p><span class="MXMLDefault_Text">[RPC Fault faultString="[MessagingError message='The MessageAgent's destination must be set to send messages.']&#8221; faultCode=&#8221;InvokeFailed&#8221; faultDetail=&#8221;Couldn&#8217;t establish a connection to &#8221;&#8221;] </span></p>
<p><span class="MXMLDefault_Text">Also When you drill down to the CFC file make sure that you are Starting from where the root of your site is and to also include the src Folder in flex. So For Example myExample.src.ThisIsTheCFCFile, DO NOT put the .cfc Extension. Here is the Example, just type in Your First Name and Last Name and click Submit. <a href="http://sherifabdou.com/cfusion/flexremote/site.swf" rel="shadowbox[post-364]">Click Here for the Example and Right Click For the Source</a><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/09/remoteobject-class-in-flex-and-coldfusion-example/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Stopping and Starting ColdFusion 8 Services in Windows Via a Batch File</title>
		<link>http://sherifabdou.com/2008/07/stopping-and-starting-coldfusion-8-services-in-windows-via-a-batch-file/</link>
		<comments>http://sherifabdou.com/2008/07/stopping-and-starting-coldfusion-8-services-in-windows-via-a-batch-file/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 16:56:12 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[coldfusion services]]></category>
		<category><![CDATA[how to restart coldfusion 8]]></category>
		<category><![CDATA[how to restart coldfusion 8 server]]></category>
		<category><![CDATA[restart coldfusion 8]]></category>
		<category><![CDATA[restart coldfusion 8 server]]></category>
		<category><![CDATA[restarting coldfusion 8]]></category>
		<category><![CDATA[stopping and starting coldfusion 8 services]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=99</guid>
		<description><![CDATA[For me Jrun takes almost 500K memory when it is fully loaded, which is a waste of memory since I am not always programming ColdFusion so I decided to write 2 Batch Files to Start and Stop all ColdFusion 8 Services. Here is the Code

@echo off
echo Starting ColdFusion 8
echo ======================================================
net start "ColdFusion 8 Application Server"
net [...]]]></description>
			<content:encoded><![CDATA[<p>For me Jrun takes almost 500K memory when it is fully loaded, which is a waste of memory since I am not always programming ColdFusion so I decided to write 2 Batch Files to Start and Stop all ColdFusion 8 Services. Here is the Code<br />
<code><br />
@echo off<br />
echo Starting ColdFusion 8<br />
echo ======================================================<br />
net start "ColdFusion 8 Application Server"<br />
net start "ColdFusion 8 ODBC Agent"<br />
net start "ColdFusion 8 ODBC Server"<br />
net start "ColdFusion 8 Search Server"<br />
echo ======================================================<br />
echo ColdFusion 8 Started</code></p>
<p><code><br />
@echo off<br />
echo Stopping ColdFusion 8<br />
echo ======================================================<br />
net stop "ColdFusion 8 Application Server"<br />
net stop "ColdFusion 8 ODBC Agent"<br />
net stop "ColdFusion 8 ODBC Server"<br />
net stop "ColdFusion 8 Search Server"<br />
echo ======================================================<br />
echo ColdFusion 8 Stopped</code></p>
<p>The Files If you do not want to create them <a href="http://sherifabdou.com/FlexAIRExamples/CFStartStop/CFStartStop.zip">Click Here </a></p>
]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/07/stopping-and-starting-coldfusion-8-services-in-windows-via-a-batch-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>BlogStats Component Example Using Flex, ColdFusion, and LCDS</title>
		<link>http://sherifabdou.com/2008/07/blogstats-component-example-using-flex-coldfusion-and-lcds/</link>
		<comments>http://sherifabdou.com/2008/07/blogstats-component-example-using-flex-coldfusion-and-lcds/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 15:44:10 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[LiveCycle]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=74</guid>
		<description><![CDATA[This component is similar to the WordPress Blog stats that shows you how many users visit your site a day. View Source is Enabled, only problem with it is it uses Application.cfc thus if I restart my server then all data is lost. If You want you can tie in a database end and have [...]]]></description>
			<content:encoded><![CDATA[<p>This component is similar to the WordPress Blog stats that shows you how many users visit your site a day. View Source is Enabled, only problem with it is it uses Application.cfc thus if I restart my server then all data is lost. If You want you can tie in a database end and have it work. If your download it then make sure to set the Gateway Instances. Gateway ID: BlogStats , Type:DataServicesMessaging and just navigate to the CFC file that is under exhd/cfc/BlogStats.cfc. Here is the example, to see it work in real time open two tabs, go into one tab and refresh say twice then navigate to the other tab and there should be a delay of around 8 seconds before it updates the count. <a href="http://sherifabdou.com/cfusion/BlogStatsExample/BlogStats.cfm">http://sherifabdou.com/cfusion/BlogStatsExample/BlogStats.cfm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/07/blogstats-component-example-using-flex-coldfusion-and-lcds/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>understanding flex data management by using coldfusion livecycle</title>
		<link>http://sherifabdou.com/2008/07/understanding-flex-data-management-by-using-coldfusion-livecycle/</link>
		<comments>http://sherifabdou.com/2008/07/understanding-flex-data-management-by-using-coldfusion-livecycle/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 06:15:05 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[LiveCycle]]></category>
		<category><![CDATA[coldfusion livecycle]]></category>
		<category><![CDATA[data-management-config xml]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=66</guid>
		<description><![CDATA[
The Purpose of the Flex Data Management is to push data  live and synchronize everything across the board with no HTTPservice requests or anything else that you have to do, everything happens in real time so you do not have to worry about a client not seeing up to date information. Ben Forta has [...]]]></description>
			<content:encoded><![CDATA[<ul style="text-align: left;">
<li>The Purpose of the Flex Data Management is to push data  live and synchronize everything across the board with no HTTPservice requests or anything else that you have to do, everything happens in real time so you do not have to worry about a client not seeing up to date information. <a href="http://www.forta.com/blog/index.cfm/2008/6/5/Adobe-TV-Introduction-to-LiveCycle-Data-Management-Services" rel="nofollow" >Ben Forta has a better explanation</a> In this Tutorial I will show you how you can set it up and make everything work.</li>
<li>Here is the example. <a href="http://sherifabdou.com/cfusion/DataPushSample/DataPushSample.swf" rel="shadowbox[post-66]">http://sherifabdou.com/cfusion/DataPushSample/DataPushSample.swf</a>. This is more complicated than what I am going over but the Source View is available so you can download it and try it out. To understand the power of Data Management, you need to open the example in two tabs. Now In one Tab Click on the DataGrid to edit the Database and in the other Tab click on the same item you clicked in tab 1 to also edit it. Now You have two windows open, change the Description in the first tab and in the second tab but have them both be different descriptions. Now go back to the first tab and click save. Now go to the Second tab, if you did it correctly you should get a screen similar to this.<a href="http://sherifabdou.com/2008/07/understanding-flex-data-management-by-using-coldfusion-livecycle/"rel="nofollow" ><img class="aligncenter" src="http://sherifabdou.com/cfusion/DataPushSample/pics/09.jpg" alt="09 understanding flex data management by using coldfusion livecycle"  title="understanding flex data management by using coldfusion livecycle" /></a>
<ul>
<li>This Prevents the whole idea of racing where one information could be different from the other if two people are editing it at the same time</li>
</ul>
<p><span id="more-66"></span></p>
<p>First thing you need is the <a href="http://download.macromedia.com/pub/coldfusion/8/eclipseextensions/CF801-Extensions-for-Eclipse.zip" rel="nofollow" >ColdFusion 8 Extensions for Eclipse.</a></li>
</ul>
<ul style="text-align: left;">
<li> Next go to where you installed Coldfusion 8 which in my case is C:\Coldfusion8\wwwroot\ and inside the wwwroot directory create a folder called cfusion. Open Flex Builder and make sure that your workspace is under C:\Coldfusion8\wwwroot\cfusion. Next thing is Create a project named DataPushSample and create a folder under src called exhd then sub folder cfc and action. It should look like this at the end</li>
</ul>
<ol>
<li><img class="aligncenter" src="http://sherifabdou.com/cfusion/DataPushSample/pics/01.jpg" alt="01 understanding flex data management by using coldfusion livecycle"  title="understanding flex data management by using coldfusion livecycle" /></li>
</ol>
<ul style="text-align: left;">
<li>Next Set up Eclipse to connect to the RDS Server by going to Window&#8211;&gt;Show View&#8211;&gt;Other&#8211;&gt;ColdFusion&#8211;&gt;RDS Dataview</li>
</ul>
<p style="text-align: left;"><img class="aligncenter" src="http://sherifabdou.com/cfusion/DataPushSample/pics/02.jpg" alt="02 understanding flex data management by using coldfusion livecycle"  title="understanding flex data management by using coldfusion livecycle" /></p>
<p style="text-align: left;"><img class="aligncenter" src="http://sherifabdou.com/cfusion/DataPushSample/pics/03.jpg" alt="03 understanding flex data management by using coldfusion livecycle"  title="understanding flex data management by using coldfusion livecycle" /></p>
<ul style="text-align: left;">
<li>Now the RDS DataView should open, click on localhost to connect and type in your RDS Password when prompted. Next Thing you should do is click on cfartgallery then expand the Tables Folder and then Left Click on the APP.ART table then Select ColdFusion Wizard then Click on Create CFC</li>
</ul>
<p style="text-align: left;"><img class="aligncenter" src="http://sherifabdou.com/cfusion/DataPushSample/pics/04.jpg" alt="04 understanding flex data management by using coldfusion livecycle"  title="understanding flex data management by using coldfusion livecycle" /></p>
<ul style="text-align: left;">
<li>Now You will then get a popup, make sure to follow and type in the exact same thing as in the picture below</li>
</ul>
<p style="text-align: left;"><img class="aligncenter" src="http://sherifabdou.com/cfusion/DataPushSample/pics/05.jpg" alt="05 understanding flex data management by using coldfusion livecycle"  title="understanding flex data management by using coldfusion livecycle" /></p>
<ul style="text-align: left;">
<li>So Now comes the Hard part, for some reason the Wizard screws up everything so you have to manually do everything. Now for the CFC Package Name and why it is cfusion.DataPushSample&#8230;, the Reason for this is you need to have the package name from the wwwroot and start to drill down. For Example, if you created under wwwroot a Folder called flex and a subfolder called coldfusion and in that ColdFusion folder is your workspace then the CFC Package name would have to be flex.coldfusion.DataPushSample.src.exhd.cfc. You must keep drilling down until you reach the cfc folder.</li>
<li>For the Actionscript part ignore the src folder and just go on as if making a regular actionscript file so if the Actionscript file was stored in DataPushSample/src/exhd/action. Package level name would only be exhd.action</li>
</ul>
<ul style="text-align: left;">
<li>Click Finish and Everything Should have been created and read to go</li>
<li>From Here on I will assume that you installed Coldfusion in C:\coldfusion8</li>
<li>Go to C:\coldfusion8\wwwroot\WEB-INF\flex\</li>
<li>Open up the Services-config.xml File , Look for this channel</li>
<p>&lt;!&#8211;  ColdFusion specific RTMP channel &#8211;&gt;<br />
&lt;!&#8211;<br />
&lt;channel-definition id=&#8221;cf-rtmp&#8221; class=&#8221;mx.messaging.channels.RTMPChannel&#8221;&gt;<br />
&lt;endpoint uri=&#8221;rtmp://{server.name}:2048&#8243; class=&#8221;flex.messaging.endpoints.RTMPEndpoint&#8221;/&gt;<br />
&lt;properties&gt;<br />
&lt;idle-timeout-minutes&gt;20&lt;/idle-timeout-minutes&gt;<br />
&lt;serialization&gt;<br />
&lt;instantiate-types&gt;false&lt;/instantiate-types&gt;<br />
&lt;/serialization&gt;<br />
&lt;/properties&gt;<br />
&lt;/channel-definition&gt;<br />
&#8211;&gt;</ul>
<ul>
<li>Uncomment that whole block so in the end it looks like this
<p style="text-align: left;"><img class="aligncenter" src="http://sherifabdou.com/cfusion/DataPushSample/pics/06.jpg" alt="06 understanding flex data management by using coldfusion livecycle"  title="understanding flex data management by using coldfusion livecycle" /></p>
</li>
<li>Open data-management-config.xml</li>
<li>Add the following destination below the adapters tag</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"> <span style="color: #808080; font-style: italic;">&lt;!-- ======================================== --&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- ColdFusion - DataManagement sample application  --&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- ======================================== --&gt;</span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">            Use the ColdFusion adapter for any CF specific destinations</span>
<span style="color: #808080; font-style: italic;">        --&gt;</span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">            Use the ColdFusion configured channels which have</span>
<span style="color: #808080; font-style: italic;">            the instantiate-types flag set to false.</span>
<span style="color: #808080; font-style: italic;">        --&gt;</span>
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!-- The component name or path on the CF server --&gt;</span>
            cfusion.DataPushSample.src.exhd.cfc.ARTAssembler
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!-- Either &quot;application&quot; or &quot;request&quot;  --&gt;</span>
            application
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                Should we look for &quot;getFoo&quot; or &quot;setFoo&quot; when translating an</span>
<span style="color: #808080; font-style: italic;">                ActionScript object to a CFC?  If not found, the value is set in the</span>
<span style="color: #808080; font-style: italic;">                &quot;this&quot; scope.  If your CFCs don't have getters and setters,</span>
<span style="color: #808080; font-style: italic;">                (they use the this scope) set this to false for better performance.</span>
<span style="color: #808080; font-style: italic;">                Optional, Default is true - look for accessor functions.</span>
<span style="color: #808080; font-style: italic;">            --&gt;</span>
            true
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                Should we create CFML Structures instead of value objects</span>
<span style="color: #808080; font-style: italic;">                when translating an ActionScript object with a remote alias?</span>
<span style="color: #808080; font-style: italic;">                Optional, Default is false (use CFCs)</span>
<span style="color: #808080; font-style: italic;">             --&gt;</span>
            false
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">               The hostname or IP address of the CF host.</span>
<span style="color: #808080; font-style: italic;">               If Data Services is installed as part of CF, you omit this.</span>
<span style="color: #808080; font-style: italic;">               If Data Services runs outside of CF, you must define this.</span>
&nbsp;
<span style="color: #808080; font-style: italic;">            &lt;hostname&gt;localhost&lt;/hostname&gt;</span>
<span style="color: #808080; font-style: italic;">            --&gt;</span>
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                This is the ID of the ColdFusion Data Management service as configured</span>
<span style="color: #808080; font-style: italic;">                in the ColdFusion Administrator.</span>
<span style="color: #808080; font-style: italic;">                Only needed if you have more than one instance of CF on a machine</span>
<span style="color: #808080; font-style: italic;">                and Data Services is not installed as part of CF.</span>
&nbsp;
<span style="color: #808080; font-style: italic;">            &lt;identity&gt;default&lt;/identity&gt;</span>
<span style="color: #808080; font-style: italic;">            --&gt;</span>
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">               Credentials to pass to the assembler CFC for all clients</span>
<span style="color: #808080; font-style: italic;">               Generally better to use setRemoteCredentials() API on client</span>
&nbsp;
<span style="color: #808080; font-style: italic;">            &lt;remote-username&gt;&lt;/remote-username&gt;</span>
<span style="color: #808080; font-style: italic;">            &lt;remote-password&gt;&lt;/remote-password&gt;</span>
<span style="color: #808080; font-style: italic;">            --&gt;</span>
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!-- Define the resolution rules and access level of the cfc being invoked --&gt;</span>
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!-- allow &quot;public&quot; (and remote) or just &quot;remote&quot; methods to be invoked --&gt;</span>
                remote
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!-- Optional controls for forcing property names to lowercase when converting to ActionScript --&gt;</span>
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!-- cfc property names --&gt;</span>
                false
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!-- Query column names --&gt;</span>
                false
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!-- struct keys --&gt;</span>
                false
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                    Optional, If the Assembler fill routine returns a query,</span>
<span style="color: #808080; font-style: italic;">                    you must define an Actionscript type for the rows.</span>
&nbsp;
<span style="color: #808080; font-style: italic;">                &lt;query-row-type&gt;samples.contact.Contact&lt;/query-row-type&gt;</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
&nbsp;
              <span style="color: #808080; font-style: italic;">&lt;!-- Add network elements here --&gt;</span>
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                   The method declarations are ignored for CFC Assemblers,</span>
<span style="color: #808080; font-style: italic;">                   with the exception of the fill-method settings.</span>
<span style="color: #808080; font-style: italic;">                   No parameters are defined here, unlike Java.</span>
<span style="color: #808080; font-style: italic;">                   Any arguments provided via the AS call are passed along to the CFC,</span>
<span style="color: #808080; font-style: italic;">                   just use optional arguments when defining the CFC.</span>
<span style="color: #808080; font-style: italic;">                --&gt;</span>
&nbsp;
                    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                        Does the assembler have a &quot;fill-contains&quot; method?</span>
<span style="color: #808080; font-style: italic;">                        This method is used to determine whether to refresh the fill.</span>
<span style="color: #808080; font-style: italic;">                        If the specified method returns true the fill is re-executed</span>
<span style="color: #808080; font-style: italic;">                        after a create or update.</span>
<span style="color: #808080; font-style: italic;">                        Auto-refresh determines if the fill is always refreshed if not specified.</span>
<span style="color: #808080; font-style: italic;">                        May only be used when auto-refresh is true.</span>
<span style="color: #808080; font-style: italic;">                        Optional. Default is false.</span>
<span style="color: #808080; font-style: italic;">                    --&gt;</span>
                    false
                    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                       Determines whether to refresh the fill on updates or creates.</span>
<span style="color: #808080; font-style: italic;">                       Optional. Default value is true.</span>
<span style="color: #808080; font-style: italic;">                    --&gt;</span>
                    true
&nbsp;
                    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                       Determines whether order is important for this filled collection. Allows for</span>
<span style="color: #808080; font-style: italic;">                       performance optimization when order is not important.</span>
<span style="color: #808080; font-style: italic;">                       Optional. Default value is true.</span>
<span style="color: #808080; font-style: italic;">                    --&gt;</span>
                    true</pre></div></div>

<ul>
<li>Here is what it should look like <a href="http://sherifabdou.com/cfusion/DataPushSample/pics/data-management-config.xml">data-management-config.xml</a></li>
</ul>
<ul>
<li>Now there are 4 import things that must be included with every destination so it works</li>
</ul>
<ol>
<li> &lt;destination id=&#8221;cfartgalleryDS&#8221;&gt; You need to have a destination id so you can connect</li>
<li> &lt;component&gt;cfusion.DataPushSample.src.exhd.cfc.ARTAssembler&lt;/component&gt;<br />
You must specify where the Assembler component is which as stated before you have to drill down from the wwwroot folder.</li>
<li>&lt;scope&gt;application&lt;/scope&gt; needs to be application</li>
<li>&lt;identity property=&#8221;ARTID&#8221;/&gt; this needs to be the Primary key in your Table.</li>
</ol>
<ul>
<li>Next thing you must do is either restart your computer or restart the coldfusion8 server for these setting to take effect, otherwise it will never work.</li>
<li>If everything up until now worked then you should be able to test out your Application.</li>
<li>In the DataPushSample.mxml add the following

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">       <span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;initApp()&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
            <span style="color: #0066CC;">import</span> exhd.<span style="color: #006600;">action</span>.<span style="color: #006600;">ART</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">collections</span>.<span style="color: #006600;">ArrayCollection</span>;
            <span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> myGridData:ArrayCollection = <span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #808080; font-style: italic;">/**
             * @private
             * This Is a Dummy Variaiable, You MUST Include it otherwise Flex
             * 
             *Will not Compile the Class and You will get an Error of
             * [RPC Fault faultString=&quot;Error during update: The OLDBEAN argument passed to the update 
             * function is not of type foo.&quot; faultCode=&quot;null&quot; faultDetail=&quot;null&quot;]
             */</span>             
             <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> dummyVariableToCompile:ART = <span style="color: #000000; font-weight: bold;">new</span> ART<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
             <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> initApp<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
             <span style="color: #66cc66;">&#123;</span>
                 myDataService.<span style="color: #006600;">fill</span><span style="color: #66cc66;">&#40;</span>myGridData<span style="color: #66cc66;">&#41;</span>;
&nbsp;
             <span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:DataService destination=<span style="color: #ff0000;">&quot;cfartgallery&quot;</span> autoCommit=<span style="color: #ff0000;">&quot;true&quot;</span> id=<span style="color: #ff0000;">&quot;myDataService&quot;</span> <span style="color: #66cc66;">/&gt;</span>
&nbsp;
    <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Text</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;If You Are Not Convinced that it works, You can always refresh the page to see that it has been commited to the DataBase&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:HBox<span style="color: #66cc66;">&gt;</span>
&nbsp;
&nbsp;
    <span style="color: #66cc66;">&lt;</span>mx:Panel title=<span style="color: #ff0000;">&quot;DataBase That Uses DataService to Update in RealTime&quot;</span> <span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;</span>mx:DataGrid dataProvider=<span style="color: #ff0000;">&quot;{myGridData}&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;600&quot;</span> editable=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;</span>mx:columns<span style="color: #66cc66;">&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn dataField=<span style="color: #ff0000;">&quot;ARTID&quot;</span> editable=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">/&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn dataField=<span style="color: #ff0000;">&quot;ARTISTID&quot;</span> editable=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">/&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn dataField=<span style="color: #ff0000;">&quot;ARTNAME&quot;</span> editable=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">/&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn dataField=<span style="color: #ff0000;">&quot;DESCRIPTION&quot;</span> editable=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">/&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn dataField=<span style="color: #ff0000;">&quot;PRICE&quot;</span> editable=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">/&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn dataField=<span style="color: #ff0000;">&quot;LARGEIMAGE&quot;</span> editable=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">/&gt;</span>
            <span style="color: #66cc66;">&lt;</span>mx:DataGridColumn dataField=<span style="color: #ff0000;">&quot;MEDIAID&quot;</span> editable=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">/&gt;</span>
        <span style="color: #66cc66;">&lt;/</span>mx:columns<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:DataGrid<span style="color: #66cc66;">&gt;</span>
&nbsp;
    <span style="color: #66cc66;">&lt;/</span>mx:Panel<span style="color: #66cc66;">&gt;</span>
&nbsp;
&nbsp;
    <span style="color: #66cc66;">&lt;</span>mx:Panel title=<span style="color: #ff0000;">&quot;Dummy Sync to show it works&quot;</span> <span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;</span>mx:DataGrid dataProvider=<span style="color: #ff0000;">&quot;{myGridData}&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;600&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:Panel<span style="color: #66cc66;">&gt;</span>
&nbsp;
&nbsp;
        <span style="color: #66cc66;">&lt;/</span>mx:HBox<span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></div></div>

</li>
</ul>
<li>Now If Everything went according to plan then you should be able to debug it should work if you are on a development server, otherwise you may need to do server mappings.</li>
<li>Log on to the ColdFusion Adminstrator panel, go to Server Settings&#8211;&gt;Mappings. Under Logical Path Enter /cfusion. Under Directory Path enter /var/www/vhosts/yoursitename.com/httpdocs/cfusion. Click Add Mapping. It should look like this</li>
<p style="text-align: left;"><img class="aligncenter" src="http://sherifabdou.com/cfusion/DataPushSample/pics/07.jpg" alt="07 understanding flex data management by using coldfusion livecycle"  title="understanding flex data management by using coldfusion livecycle" /></p>
<p>Most Common Errors and Their Solution</p>
<ul>
<li>[<strong style="color: black; background-color: #ffff66;">RPC</strong> <strong style="color: black; background-color: #a0ffff;">Fault</strong> faultString="Error invoking <strong style="color: black; background-color: #ff66ff;">fill</strong>-<strong style="color: white; background-color: #880000;">method</strong> '<strong style="color: black; background-color: #ff66ff;">fill</strong>' for destination artgalleryDS: Unable to invoke CFC - Error invoking CFC <strong style="color: black; background-color: #ff66ff;">fill</strong> operation:Could not find the <strong style="color: black; background-color: #99ff99;">ColdFusion</strong> Component or <strong style="color: black; background-color: #ff9999;">Interface</strong> cfusion.DataPushSample.src.cfc.ARTAssembler." faultCode="Server.Processing" faultDetail="null"]</li>
<li> This Either means You need to do the ColdFusion Mapping, or you gave the wrong &lt;component&gt;&lt;/component&gt; path wrong in the data-management-config.xml file. Double check this</li>
<li>
<pre><span class="ActionScriptASDoc">[RPC Fault faultString="Error during update: The OLDBEAN argument passed to the update
 function is not of type foo." faultCode="null" faultDetail="null"]</span></pre>
</li>
<li><span class="ActionScriptASDoc">This would mean that you did not Include the Art.as file in flex, this needs to be included somehow otherwise Flex will not compile it. Easiest solution is to drop this in the main mxml file.

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"> <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> dummyVariableToCompile:ART= <span style="color: #000000; font-weight: bold;">new</span> ART<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p></span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/07/understanding-flex-data-management-by-using-coldfusion-livecycle/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Hardcoding The endpoint for AIR and ColdFusion Remoting.</title>
		<link>http://sherifabdou.com/2008/06/hardcoding-the-endpoint-for-air-and-coldfusion-remoting/</link>
		<comments>http://sherifabdou.com/2008/06/hardcoding-the-endpoint-for-air-and-coldfusion-remoting/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 17:58:22 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=42</guid>
		<description><![CDATA[If you are using Adobe AIR with ColdFusion Remoting and you notice that your file dropped the first letter from its name and you get and error sort of like this
RPC Fault faultString= &#8220;Send failed&#8221;
faultCode=&#8221;Client.Error.MessageSend&#8221;
faultDetail= &#8220;Channel.Connect.Failed error NetConnection.Call.Failed:
then include

&#60;mx:RemoteObject
	  		 endpoint=&#34;http://localhost:8500/flex2gateway&#34;/&#62;

]]></description>
			<content:encoded><![CDATA[<p>If you are using Adobe AIR with ColdFusion Remoting and you notice that your file dropped the first letter from its name and you get and error sort of like this</p>
<p>RPC Fault faultString= &#8220;Send failed&#8221;<br />
faultCode=&#8221;Client.Error.MessageSend&#8221;<br />
faultDetail= &#8220;Channel.Connect.Failed error NetConnection.Call.Failed:</p>
<p>then include</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>mx:RemoteObject
	  		 endpoint=<span style="color: #ff0000;">&quot;http://localhost:8500/flex2gateway&quot;</span><span style="color: #66cc66;">/&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/06/hardcoding-the-endpoint-for-air-and-coldfusion-remoting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding the RemoteClass Metadata and its use in Flex and ColdFusion</title>
		<link>http://sherifabdou.com/2008/06/understanding-the-remoteclass-metadata-and-its-use-in-flex-and-coldfusion/</link>
		<comments>http://sherifabdou.com/2008/06/understanding-the-remoteclass-metadata-and-its-use-in-flex-and-coldfusion/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 17:17:12 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript remoteclass]]></category>
		<category><![CDATA[flex remoteclass]]></category>
		<category><![CDATA[flex remoteclass alias]]></category>
		<category><![CDATA[remoteclass alias]]></category>
		<category><![CDATA[remoteclass alias flex]]></category>
		<category><![CDATA[remoteclass flex]]></category>
		<category><![CDATA[remoteclass metadata]]></category>
		<category><![CDATA[[remoteclass(alias=]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=31</guid>
		<description><![CDATA[Here is an example of how to use the RemoteClass metadata in Flex to map Actionscript objects that map directly onto ColdFusion Component that is found on a remote server. The data then can be converted to an Actionscript class with the appropriate properties and referenced in another actionscript class or MXML. My Workspace is [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an example of how to use the RemoteClass metadata in Flex to map Actionscript objects that map directly onto ColdFusion Component that is found on a remote server. The data then can be converted to an Actionscript class with the appropriate properties and referenced in another actionscript class or MXML. My Workspace is under wwwroot/</p>
<p><a href="http://sherifabdou.com/www/FlexAIRExamples/FCRemote/RemoteClassExample.zip">Download Example</a></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">;
&nbsp;
package vo
<span style="color: #66cc66;">&#123;</span>
<span style="color: #808080; font-style: italic;">/**
* @private
* What we need to do is map on this actionscript file
* the coldufusion component, this is done by using the Remote
* Class Metadata tag. so [RemoteClass(alias=&quot;from(wwwroot Folder).path.to.coldFusionCFC&quot;)]
* Everything has to match exactly between the variables declared here and the coldFusion arguments
* that will be declared in the CFC file otherwise it will not work at all. ALso we want this class to be
* Bindable so we can show some information to know that it works
*/</span>
<span style="color: #66cc66;">&#91;</span>RemoteClass<span style="color: #66cc66;">&#40;</span>alias=<span style="color: #ff0000;">&quot;RemoteClassExample.src.cfc.cfcVO&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ColdFusionFlexVO
<span style="color: #66cc66;">&#123;</span>
<span style="color: #808080; font-style: italic;">/**
* @private
* What we will be creating are simple variables to
* prove the point, this can be used for a registration form for example.
* Make Sure when you write in the Coldfusion component you use the same
* exact name, case does matter.
* Now Go to the cfcVO.cfc file under cfc
*/</span>
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> firstName:<span style="color: #0066CC;">String</span>;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> lastName:<span style="color: #0066CC;">String</span>;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> emailAddress:<span style="color: #0066CC;">String</span>;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">password</span>:<span style="color: #0066CC;">String</span>;
&nbsp;
&nbsp;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> ColdFusionFlexVO<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
<span style="color: #66cc66;">&#125;</span>
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</span>
<span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">var</span> result:<span style="color: #0066CC;">String</span>= <span style="color: #ff0000;">&quot; &quot;</span>;
result += <span style="color: #ff0000;">&quot;First Name : &quot;</span>+ firstName +<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> +
<span style="color: #ff0000;">&quot;Last Name : &quot;</span> + lastName + <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> +
<span style="color: #ff0000;">&quot;Email Address : &quot;</span> + emailAddress +<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> +
<span style="color: #ff0000;">&quot;Passwrod : &quot;</span> + <span style="color: #0066CC;">password</span>;
<span style="color: #b1b100;">return</span> result;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;!</span>-- What we need now is to give an alias to the cfcomponent tag which is basically where <span style="color: #0066CC;">this</span> file is stored--<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>cfcomponent output=<span style="color: #ff0000;">&quot;false&quot;</span> alias=<span style="color: #ff0000;">&quot;RemoteClassExample.src.cfc.cfcVO&quot;</span> style=<span style="color: #ff0000;">&quot;rpc&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;!</span>--Create The Properties that will be used, Match them exactly <span style="color: #0066CC;">with</span> these
		 <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> firstName:<span style="color: #0066CC;">String</span>;
		 <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> lastName:<span style="color: #0066CC;">String</span>;
		 <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> emailAddress:<span style="color: #0066CC;">String</span>;
		 <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">password</span>:<span style="color: #0066CC;">String</span>;
		 Including the <span style="color: #0066CC;">type</span> --<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>cfproperty <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;firstName&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>cfproperty <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;lastName&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>cfproperty <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;emailAddress&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>cfproperty <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">/&gt;</span>
&nbsp;
&nbsp;
	<span style="color: #66cc66;">&lt;!</span>--Now We place the <span style="color: #0066CC;">arguments</span> that we will be using which is what we will
	passing <span style="color: #b1b100;">in</span> when we create a remote <span style="color: #0066CC;">object</span> <span style="color: #b1b100;">in</span> flex, the <span style="color: #b1b100;">return</span> <span style="color: #0066CC;">type</span> is the <span style="color: #0066CC;">name</span>
	of the coldfusion cfc file which is cfcVO--<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>cffunction <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;returnVOClassObject&quot;</span> returntype=<span style="color: #ff0000;">&quot;cfcVO&quot;</span> access=<span style="color: #ff0000;">&quot;remote&quot;</span><span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfargument  <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;firstName&quot;</span> required=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">/&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfargument  <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;lastName&quot;</span> required=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">/&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfargument  <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;emailAddress&quot;</span> required=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">/&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfargument  <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span> required=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #66cc66;">/&gt;</span>
&nbsp;
		<span style="color: #66cc66;">&lt;!</span>--Now <span style="color: #0066CC;">set</span> the property to the argument <span style="color: #0066CC;">and</span> <span style="color: #b1b100;">return</span> it--<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfset <span style="color: #0066CC;">this</span>.<span style="color: #006600;">firstName</span> = <span style="color: #0066CC;">arguments</span>.<span style="color: #006600;">firstName</span> <span style="color: #66cc66;">/&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfset <span style="color: #0066CC;">this</span>.<span style="color: #006600;">lastName</span> = <span style="color: #0066CC;">arguments</span>.<span style="color: #006600;">lastName</span> <span style="color: #66cc66;">/&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfset <span style="color: #0066CC;">this</span>.<span style="color: #006600;">emailAddress</span> = <span style="color: #0066CC;">arguments</span>.<span style="color: #006600;">emailAddress</span> <span style="color: #66cc66;">/&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfset <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">password</span> = <span style="color: #0066CC;">arguments</span>.<span style="color: #0066CC;">password</span> <span style="color: #66cc66;">/&gt;</span>
&nbsp;
		<span style="color: #66cc66;">&lt;!</span>--<span style="color: #b1b100;">Return</span> the entire cfc, which will mean that we are really returning a COldFusionFlexVO--<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;</span>cfreturn this<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span>--Move <span style="color: #0066CC;">on</span> to the MXML File--<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>cffunction<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;/</span>cfcomponent<span style="color: #66cc66;">&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span>
	 creationComplete=<span style="color: #ff0000;">&quot;onCreateComplete()&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">FaultEvent</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">ResultEvent</span>;
			<span style="color: #0066CC;">import</span> vo.<span style="color: #006600;">ColdFusionFlexVO</span>;
			<span style="color: #808080; font-style: italic;">/**
			 * @Private
			 * Create the class and pass to it values so we see that it works
			 */</span>
			 <span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
			 <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> remoteVO:ColdFusionFlexVO;
&nbsp;
&nbsp;
			 <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onCreateComplete<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			 <span style="color: #66cc66;">&#123;</span>
			 	remoteSend.<span style="color: #006600;">returnVOClassObject</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Adobe&quot;</span>,<span style="color: #ff0000;">&quot;Flex&quot;</span>,<span style="color: #ff0000;">&quot;Adobe@flex.net&quot;</span>,<span style="color: #ff0000;">&quot;ColdFusion&quot;</span><span style="color: #66cc66;">&#41;</span>;
			 <span style="color: #66cc66;">&#125;</span>
			 <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onResultEvent<span style="color: #66cc66;">&#40;</span>event:ResultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			 <span style="color: #66cc66;">&#123;</span>
			 	remoteVO = event.<span style="color: #006600;">result</span> as ColdFusionFlexVO; <span style="color: #808080; font-style: italic;">//where our ColdFusionFlexVO class will be populated</span>
			 	myText.<span style="color: #0066CC;">text</span> = remoteVO.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			 <span style="color: #66cc66;">&#125;</span>
			 <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onFaultEvent<span style="color: #66cc66;">&#40;</span>event:FaultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			 <span style="color: #66cc66;">&#123;</span>
			 	mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">fault</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>,<span style="color: #ff0000;">&quot;Fault&quot;</span><span style="color: #66cc66;">&#41;</span>;
			 <span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;!</span>--The Remote Object--<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:RemoteObject id=<span style="color: #ff0000;">&quot;remoteSend&quot;</span> destination=<span style="color: #ff0000;">&quot;ColdFusion&quot;</span> source=<span style="color: #ff0000;">&quot;RemoteClassExample.src.cfc.cfcVO&quot;</span><span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;</span>mx:method <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;returnVOClassObject&quot;</span> result=<span style="color: #ff0000;">&quot;onResultEvent(event)&quot;</span>
		            fault=<span style="color: #ff0000;">&quot;onFaultEvent(event)&quot;</span><span style="color: #66cc66;">&gt;</span>
&nbsp;
		<span style="color: #66cc66;">&lt;/</span>mx:method<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:RemoteObject<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>mx:TextArea id=<span style="color: #ff0000;">&quot;myText&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;200&quot;</span><span style="color: #66cc66;">/&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/06/understanding-the-remoteclass-metadata-and-its-use-in-flex-and-coldfusion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex and ColdFusion Remoting Simple DataBase Example</title>
		<link>http://sherifabdou.com/2008/06/flex-and-coldfusion-remoting-simple-database-example/</link>
		<comments>http://sherifabdou.com/2008/06/flex-and-coldfusion-remoting-simple-database-example/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 23:54:44 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[flex coldfusion remoting]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=30</guid>
		<description><![CDATA[Here is a simple of Example of how you can use the RemoteService class in Flex and ColdFusion to populate a datagrid. The database that is being used is the one that comes with ColdFusion 8 (cfartgallery). Download the File and Import it via The import function in Eclipse. Make sure your workspace is under [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a simple of Example of how you can use the RemoteService class in Flex and ColdFusion to populate a datagrid. The database that is being used is the one that comes with ColdFusion 8 (cfartgallery). Download the File and Import it via The import function in Eclipse. Make sure your workspace is under the wwwroot Folder otherwise you will have to make adjustments.</p>
<p><a href="http://sherifabdou.com/FlexAIRExamples/SimpleDataBaseRemotingExample/DataBaseExample.zip">Download FCRExample</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/06/flex-and-coldfusion-remoting-simple-database-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Login Form Example using Flex and ColdFusion WebService</title>
		<link>http://sherifabdou.com/2008/05/simple-login-form-example-using-flex-and-coldfusion-webservice/</link>
		<comments>http://sherifabdou.com/2008/05/simple-login-form-example-using-flex-and-coldfusion-webservice/#comments</comments>
		<pubDate>Thu, 29 May 2008 00:45:54 +0000</pubDate>
		<dc:creator>Sherif</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[flex coldfusion login]]></category>
		<category><![CDATA[flex form example]]></category>
		<category><![CDATA[flex login]]></category>
		<category><![CDATA[flex login example]]></category>
		<category><![CDATA[flex login form]]></category>
		<category><![CDATA[flex login form example]]></category>
		<category><![CDATA[flex login page example]]></category>
		<category><![CDATA[flex login sample]]></category>
		<category><![CDATA[login form flex]]></category>
		<category><![CDATA[login form in flex]]></category>
		<category><![CDATA[login page in flex]]></category>

		<guid isPermaLink="false">http://sherifabdou.com/?p=23</guid>
		<description><![CDATA[Here is how you can use Flex and Coldfusion wsdl to check credentials of a login form. This is very simple, it does not include a database and the username and password are coded in the Cfc file.  The Username is Adobe and the Password is Flex. my workspace is under wwwroot in the ColdFusion [...]]]></description>
			<content:encoded><![CDATA[<p>Here is how you can use Flex and Coldfusion wsdl to check credentials of a login form. This is very simple, it does not include a database and the username and password are coded in the Cfc file.  The Username is Adobe and the Password is Flex. my workspace is under wwwroot in the ColdFusion 8 Folder.</p>
<p><a href="http://www.sherifabdou.com/FlexAIRExamples/SimpleColdFusionFlexLogin/SimpleLogin.zip" rel="nofollow" >Download the Example</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sherifabdou.com/2008/05/simple-login-form-example-using-flex-and-coldfusion-webservice/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
