Ok, need a bit of help, I have been fighting with flex all day long. And frankly it is winning.
I am testing out the funtionality of flex 2, with a real world app that I will improve on once I get it down. First off I have a cfc that works fine. But it is my flex that is not working. When I run the code below, and I try to submit a file number it gives me an error saying Http Request Error. Here is my flex code. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"> <mx:WebService id="srv" wsdl="http://70.97.113.6/wsdl/hs2f.cfc?wsdl" showBusyCursor="true" /> <mx:Script> <![CDATA[ function qpAdminFiles(mySearch){ srv.qpAdminFiles(mySearch);} ]]> </mx:Script> <mx:states> <mx:State name="results"> <mx:PropertyOverride target="{panel1}" property="width" value="100%"/> <mx:PropertyOverride target="{panel1}" property="height" value="100%"/> <mx:AddChild target="{canvas1}" position="lastChild"> <mx:DataGrid x="1" width="100%" dataProvider="{srv.qpAdminFiles.result}" height="50%" y="85"> <mx:columns> <mx:DataGridColumn headerText="File Number:" columnName="FLD_FILENUM"/> <mx:DataGridColumn headerText="Archived:" columnName="col2"/> <mx:DataGridColumn headerText="Last Update:" columnName="col3"/> </mx:columns> </mx:DataGrid> </mx:AddChild> <mx:PropertyOverride target="{panel1}" property="title" value="File Search"/> </mx:State> </mx:states> <mx:Panel height="101" width="514" id="panel1" title="File Search" resizeEffect="Resize"> <mx:Canvas height="100%" width="100%" id="canvas1"> <mx:Label x="7" y="22" text="File Number:" height="20" id="label1"/> <mx:TextInput x="85" y="20" toolTip="Partial file numbers are ok" id="mySearch"/> <mx:Button x="250" y="20" label="Find" id="button1" click="currentState='results';qpAdminFiles(mySearch.text);"/> <mx:Button label="Reset" x="304" y="20" click="currentState='start'" id="button2"/> </mx:Canvas> </mx:Panel> </mx:Application> And here is my cfc code. <cffunction name="qpAdminFiles" access="remote" returntype="string" output="true"> <cfargument name="mySearch" type="string" required="yes" /> <cfquery name="qpAdminFiles" datasource="#application.dsn#"> select * from tbl_smartPanel_propInfo where fld_fileNum like '%#arguments.mySearch#%' </cfquery> <cfreturn qpAdminFiles /> </cffunction> ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

