It is driving me crazy. I figure this awsome group can point me in the
right direction.

I keep getting this error. ReferenceError: Error #1069: Property cdr
not found on String and there is no default value.

I do the webservice call and can even display the results in this label:
<mx:Label text="{getData.getData.lastResult}" />

The data in the label is:
<data><result month='07/10/2006'><cdr>288</cdr></result><result
month='07/11/2006'><cdr>264</cdr></result></data>

But when I try to link it to a line chart I keep getting the message.
ReferenceError: Error #1069: Property cdr
not found on String and there is no default value.

Now this worked fine when it was a http service but i wanted to
use webservice to access it with a cfc on the backend.

My original thought is that even thought the data is being returned
maybe it is not in the correct format for the linechart component.

Here is some code.

<mx:WebService
        id="getData"
        useProxy="false"
        wsdl="xxxxxxxxx">
        <mx:operation
            name="getData"
            result="handleWebServiceResult(event)"
            fault="errorHandler(event)"/>
    </mx:WebService>
    
            <mx:Panel title="ACD and CDR Replication" height="100%"
width="100%" layout="vertical">
        
        <mx:Label text="{getData.getData.lastResult}" />
        
        
        <mx:LineChart id="chart"
dataProvider="{getData.getData.lastResult.data.result}" width="100%">
                <mx:horizontalAxis>
                        <mx:CategoryAxis categoryField="month"/>
                </mx:horizontalAxis>
                <mx:series>
                        <mx:LineSeries yField="cdr" name="CDR"
displayName="CDR"/>
                </mx:series>
        </mx:LineChart>






--
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/
 



Reply via email to