1. This, "url="url"" is wrong. What are you expecting form an URL that is the string "url"? Are you attempting to bind the url property to a variable? 2. If so, then do url="{_url}". ( and don't use a property name for a variable name.) But that will require the var _url be declared as an instance variable. 3. In your combo click handler, assign the url string to the instance variable, not to a local variable.
Actually my preference would be to assign the url directly in the handler, instead of binding: var sURL:String = "http://localhost/cgi-bin/dbRecords.cgi?ini=" + ini; trace("sURL=" + sURL); //copy and paste this into a browser to test it. dbRecords.url = sURL; Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of brian_garcia81 Sent: Wednesday, December 19, 2007 3:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Multi Query HTTPService Functions Variables DataGrid. Error with 2nd URL query Hi, Im trying to get this app working. currently Working it query's the database with <mx:XML> and populates <mx:ComboBox> on the selection is captures the user selection. Here on out Im having issues. I need to pass the variables through a url so I bound the comobox selection to a variable and then the new URL to a variable with the combobox selection + added on. It then connects to the new Url with <mx:HTTPService> and populates a datagrid with the return XML from the Http request. my code complies with no problems but when run it errors out at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal: <http://www.adobe.com/2006/flex/mx/internal:> :childAdded() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:1553] at mx.managers::SystemManager/initializeTopLevelWindow() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2330] at mx.managers::SystemManager/docFrameHandler() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214] The inital query to a URL works and populates a combox im unsure what is exactly wrong with my code. I have been staring at it for about 2 days now have issues. I found this website that helped. http://flashmove.com/forum/showthread.php?t=30242 <http://flashmove.com/forum/showthread.php?t=30242> and this one but it confused me more then helped. http://nwebb.co.uk/blog/?p=118 <http://nwebb.co.uk/blog/?p=118> All help will be greatly welcomed. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="vertical" > <mx:Script> <![CDATA[ private function onComboChange(event:Event):void { var ini:String = event.target.selectedItem; var url:String = "http://localhost/cgi- <http://localhost/cgi-> bin/dbRecords.cgi?ini=" + ini; dbRecords.send(); } ]]> </mx:Script> <mx:XML id="sqlQuerey" source="http://localhost/cgi- <http://localhost/cgi-> bin/dbtables.cgi" /> <mx:HTTPService id="dbRecords" url="url" /> <mx:DataGrid id="recordDisplay" dataProvider="dbRecords.lastResult.MasterFile.Record"> </mx:DataGrid> <mx:ComboBox id="ini" dataProvider="{sqlQuerey.name}" rowCount="30" change="onComboChange(event)" /> </mx:Application>