Try setting the result of the service call to a function…and have that function set the dataprovider of ur grid.

Would grab u an example from livedocs but seems to be down…

 

-Stace

 


From: [email protected] [mailto:[email protected]] On Behalf Of Ghislain Simard
Sent: Saturday, July 23, 2005 5:25 PM
To: [email protected]
Subject: [flexcoders] Re: update a list with new value from RemoteOject result

 

The grid is not updated...

--- In [email protected], "Stacy Young" <[EMAIL PROTECTED]>
wrote:
> Can u maybe explain the problem in more detail? Is the grid not
> updating?
>

>
> -Stace
>

>
> ________________________________
>
> From: [email protected]
[mailto:[email protected]] On
> Behalf Of Ghislain Simard
> Sent: Saturday, July 23, 2005 3:25 PM
> To: [email protected]
> Subject: [flexcoders] Re: update a list with new value from
RemoteOject
> result
>

>
> I have no model.  I'm communicating to the RemoteObject directly
see:
>
>         <mx:RemoteObject id="ecranRO" endpoint="@ContextRoot
> ()/flashservices/gateway" source="EEWizard3.cf.zone"
> fault="mx.core.Application.alert
(event.fault.faultstring, 'Error')">
>         <mx:method name="affichage"/>
>       </mx:RemoteObject>
>       <mx:HBox width="100%" height="100%" verticalAlign="middle"
> horizontalAlign="center">
>         <mx:DataGrid id="myGrid"
> dataProvider="{ecranRO.affichage.result}" rowCount="2">
>           <mx:columns>
>             <mx:Array>
>               <mx:DataGridColumn columnName="Building_Zone_ID"
> headerText="Building Zone" />
>               <mx:DataGridColumn columnName="Description"
> headerText="Description"/>
>             </mx:Array>
>           </mx:columns>
>         </mx:DataGrid>
>
> --- In [email protected], "Stacy Young"
<[EMAIL PROTECTED]>
> wrote:
> > You could bind your result to a model and have your list and
> datagrid
> > bound to their specific model. Whenever the result is received
> from the
> > server, the model will be updated...and in turn, your UI
> components.
> >
> > 
> >
> > HTH,
> >
> > Stace
> >
> > 
> >
> > ________________________________
> >
> > From: [email protected]
> [mailto:[email protected]] On
> > Behalf Of Ghislain Simard
> > Sent: Saturday, July 23, 2005 1:48 PM
> > To: [email protected]
> > Subject: [flexcoders] update a list with new value from
RemoteOject
> > result
> >
> > 
> >
> > Hi,
> > I have a list and a datagrid that I would like to update.  How
to
> > update all the columns and refresh the DataGrid and List
> dynamically
> > using the RemoteObject result?  The idea is that I would like to
> > insert in the list the new created record with his new ID
received
> > from the RemoteObject result.
> >
> > Thanks
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> > 
> >
> > *      Visit your group "flexcoders
> > <http://groups.yahoo.com/group/flexcoders> " on the web.
> >        
> > *      To unsubscribe from this group, send an email to:
> >       [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]
> subject=Unsubscribe>
> >        
> > *      Your use of Yahoo! Groups is subject to the Yahoo! Terms
of
> > Service <http://docs.yahoo.com/info/terms/> .
> >
> > 
> >
> > ________________________________
>
>
>
>
> --
> 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
>

>
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]
subject=Unsubscribe>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
>

>
> ________________________________






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




Reply via email to