If that doesn't work try:

artSvc.getArtists.lastResult

for the dataProvider, without artists at the end.

-TH

--- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Malik,
> 
> I can't test this, but this is how the examples that I've seen 
work.
> 
> -TH
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> "
> layout="absolute" creationComplete="initApp()">
> 
> <mx:Script>
> <![CDATA[
> import mx.collections.ArrayCollection;
> import mx.rpc.events.*;
> 
> public function initApp():void {
> // Force artists class to load
> artSvc.getArtists.send();
> }
> ]]>
> </mx:Script>
> 
> <mx:RemoteObject id="artSvc" destination="ColdFusion"
> source="myapp.cf.com.artists" showBusyCursor="true" />
> 
> <mx:DataGrid id="dgArtists"
> dataProvider="{artSvc.getArtists.lastResult.artists}" x="177" 
y="65">
>     <mx:columns>
>        <mx:DataGridColumn headerText="First Name" 
dataField="firstname"/>
>        <mx:DataGridColumn headerText="Last Name" 
dataField="lastname"/>
>     </mx:columns>
> </mx:DataGrid>
> 
> </mx:Application>
> 
> --- In [email protected], "malik_robinson" 
<Malik_Robinson@>
> wrote:
> >
> > Hi,
> >
> > I have the following code that I *thought* would work, but it 
does
> > not. Can anyone see why this might not work? Basically the 
datagrid
> > does not get loaded, the browser says "transferring data from
> > localhost", but it never populates the grid, no error, I see the 
show
> > busy cursor and my empty datagrid. I am using CF 7 and there is a
> > datasource that is defined when you install the tutorials. It is
> > basically a database of artists or something. I wrote a test 
page to
> > ensure my CFC works and it does return a query object, so I know 
the
> > CFC is fine.
> >
> > I am just trying to have it load the datagrid upon 
creationComplete
> >
> > Here is the main.mxml:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > layout="absolute" creationComplete="initApp()">
> >
> > <mx:Script>
> > <![CDATA[
> > import mx.collections.ArrayCollection;
> > import mx.rpc.events.*;
> >
> >
> > public function initApp():void {
> > // Force artists class to load
> > artSvc.getArtists();
> > }
> > ]]>
> > </mx:Script>
> >
> > <mx:RemoteObject id="artSvc" destination="ColdFusion"
> > source="myapp.cf.com.artists" showBusyCursor="true" />
> >
> > <mx:DataGrid id="dgArtists"
> > dataProvider="{artSvc.getArtists.artists}" x="177" y="65">
> > <mx:columns>
> > <mx:DataGridColumn headerText="First Name"
> > dataField="firstname"/>
> > <mx:DataGridColumn headerText="Last Name"
> > dataField="lastname"/>
> > </mx:columns>
> > </mx:DataGrid>
> >
> >
> > </mx:Application>
> >
> >
> > Any ideas?
> >
> > -Malik
> >
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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