[flexcoders] Re: Binding a webservice result to a dataprovider

2005-05-25 Thread Joel Parish
If I change the dataProvider to a list and map the dataProvider to
ws.doStockHistory.result.date or ws.doStockHistory.result.price the
list will show the right data, how do i combine these two into a
datagrid? Can a datagrid use an object as a dataProvider or must it be
an array?
--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Your code looks fine. I guess, something is wrong with Webservice
> itself, it throws error.
> 
> I have used a different webservice and it works fine, see the following
> code:
> 
> ##GetQuotesWS.mxml##
> 
> 
> http://www.macromedia.com/2003/mxml";>
>result="alert('result recieved')"
> wsdl="http://www.xignite.com/xquotes.asmx?WSDL";>
>   
>   
>   MACR,ADBE,YHOO,MSFT
>   
>   
>   
>   
>   
>height="100%" dataProvider="{ws.GetQuotes.result}">
> 
> 
> 
>  headerText="Symbol"/>
>  headerText="Name"/>
>  headerText="Date"/>
>  headerText="Open"/>
>  headerText="High"/>
>  headerText="Low"/>
>  headerText="Change"/>
>  headerText="Last"/>
>
> 
>   
>   
>click="ws.GetQuotes.send();" />
>   
>   
> 
> 
> 
> Hope that helps..
> 
> -abdul
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of cmdpromptjunkie
> Sent: Thursday, May 26, 2005 8:41 AM
> To: flexcoders@yahoogroups.com
> Subject: [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.
> 
> 
> http://www.macromedia.com/2003/mxml";>
>result="alert('recieved')"
> wsdl="http://www.flash-db.com/services/ws/stockHistory.wsdl";>
>   
>   
>   any
>   any
>   NDAQ
>   daily
>   1
>   1 
>   2005
>   
>   
>   
>   
>   
>height="100%"
> dataProvider="{ws.doStockHistory.result}">
>   
>   
>  columnName="date" />
>  columnName="close" />
>   
>   
>   
>click="ws.doStockHistory.send();" />
>   
>   
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links




 
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/
 




RE: [flexcoders] Re: Binding a webservice result to a dataprovider

2005-05-26 Thread Tracy Spratt
The dataProvider can be contained in an object, but the dataProvider
assignment should be an array (for list based controls). 

Attached is an example that takes two xml source files, builds a
dataProvider using one column (yesterday) from one file and the rest
from the other, and adds a column that shows a calculated value.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joel Parish
Sent: Thursday, May 26, 2005 12:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Binding a webservice result to a dataprovider

If I change the dataProvider to a list and map the dataProvider to
ws.doStockHistory.result.date or ws.doStockHistory.result.price the
list will show the right data, how do i combine these two into a
datagrid? Can a datagrid use an object as a dataProvider or must it be
an array?
--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Your code looks fine. I guess, something is wrong with Webservice
> itself, it throws error.
> 
> I have used a different webservice and it works fine, see the
following
> code:
> 
> ##GetQuotesWS.mxml##
> 
> 
> http://www.macromedia.com/2003/mxml";>
>result="alert('result recieved')"
> wsdl="http://www.xignite.com/xquotes.asmx?WSDL";>
>   
>   
>   MACR,ADBE,YHOO,MSFT
>   
>   
>   
>   
>   
>height="100%" dataProvider="{ws.GetQuotes.result}">
> 
> 
> 
>  headerText="Symbol"/>
>  headerText="Name"/>
>  headerText="Date"/>
>  headerText="Open"/>
>  headerText="High"/>
>  headerText="Low"/>
>  headerText="Change"/>
>  headerText="Last"/>
>
> 
>   
>   
>click="ws.GetQuotes.send();" />
>   
>   
> 
> 
> 
> Hope that helps..
> 
> -abdul
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of cmdpromptjunkie
> Sent: Thursday, May 26, 2005 8:41 AM
> To: flexcoders@yahoogroups.com
> Subject: [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.
> 
> 
> http://www.macromedia.com/2003/mxml";>
>result="alert('recieved')"
> wsdl="http://www.flash-db.com/services/ws/stockHistory.wsdl";>
>   
>   
>   any
>   any
>   NDAQ
>   daily
>   1
>   1 
>   2005
>   
>   
>   
>   
>   
>height="100%"
> dataProvider="{ws.doStockHistory.result}">
>   
>   
>  columnName="date" />
>  columnName="close" />
>   
>   
>   
>click="ws.doStockHistory.send();" />
>   
>   
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links



 






 
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/
 

	
		01/09/2005
		1-NEW VEHICLE
		1
		3177
		1
	
	
		01/09/2005
		2-USED VEHICLE
		23456578.7000
		4322
		2
	
	
		01/09/2005
		3-UNSECURED
		345678.0700
		761
		3
	
	
		01/09/2005
		4-EQUITY MORTGAGES
		56789.8100
		545
		4