[flexcoders] Binding a webservice result to a dataprovider
Hello, I am relatively new to the flex community. I have a question regarding a small application that I'm developing to learn flex. I've tried a lot of things but no mater what I do I cannot seem to bind the result of this webservice call to a dataProvider (ideally a chart) :( Heres the code for my app. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService concurrency=single id=ws result=alert('recieved') wsdl=http://www.flash-db.com/services/ws/stockHistory.wsdl; mx:operation name=doStockHistory mx:request usernameany/username passwordany/password symbolNDAQ/symbol intervaldaily/interval dayFrom1/dayFrom monthFrom1/monthFrom yearFrom2005/yearFrom /mx:request /mx:operation /mx:WebService mx:Panel width=100% height=100% mx:VBox width=100% height=100% mx:DataGrid id=grid width=100% height=100% dataProvider={ws.doStockHistory.result} mx:columns mx:Array mx:DataGridColumn columnName=date / mx:DataGridColumn columnName=close / /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get click=ws.doStockHistory.send(); / /mx:VBox /mx:Panel /mx:Application 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/
[flexcoders] Re: Usting Flex with a database
Well I am very very new to the flex world :) but let me try and take a stab at your quesition. Flex opperates in a N-Tier model, specifically it is the presentation tier. In theory, flex can work with any database, as long as you properly set up your buisness tier to integrate with your database backend. You could use flex with any webservice to produce the desired database connectivity, whether the buisness tier be in php(laugh) or C, as long as you connect to the buisness tier using SOAP, AMF or any of the other remoting features offered in flex. Here's a some docs on the n-tier model. http://livedocs.macromedia.com/flex/15/flex_docs_e n/wwhelp/wwhimpl/comm on/html/wwhelp.htm?context=Flex_Documentationfile=0003.htm Cheers, Joel 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/