I don't see the <mx:state> stuff in here, do you mean to be setting the currentState on the parent application maybe? parent.currentState = 'ntcl' or something?
Matt -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, January 17, 2006 11:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Changing states with DG Click I have a datagrid that I am using to display file search info. When a user clicks on the file they want to view, it should change the current state from the search state to the view state. However, I cant seem to get this to work. Here is the code that I am trying. Can someone give me a bit of help. <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" width="100%" height="100%"> <mx:WebService id="srv" useProxy="false" wsdl="http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl" showBusyCursor="true" /> <mx:Panel x="0" panelAlpha="1.0" height="100%" width="100%" y="03" title="View Transaction: Search"> <mx:Script> <![CDATA[ function qpListSearch(fld_fileNum){ srv.qpListSearch(fld_fileNum);} ]]> </mx:Script> <mx:Canvas height="100%" width="100%"> <mx:TextInput x="6" y="22" id="fld_fileNum"/> <mx:Button x="184" y="22" click="qpListSearch(fld_fileNum.text)" label="Button"/> <mx:DataGrid x="6" id="FSDG" click="currentState='ntcl'" dataProvider="{srv.qpListSearch.result}" y="71" width="100%" height="80%"> <mx:columns> <mx:DataGridColumn headerText="File Number" columnName="FLD_FILENUM"/> <mx:DataGridColumn headerText="Address" columnName="FLD_PROPNUM FLD_PROPDIR FLD_PROPSTREET"/> </mx:columns> </mx:DataGrid> </mx:Canvas> </mx:Panel> -- 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 -- 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/