Thanks for your reply. Our problem, however, is
that the screen is ready and rendered before the remote object completes its
call. We already show the busy
cursor for the remote object, but this is not preventing the view from
rendering completely before the remote call returns from the server. We use the
“onCreationComplete()” function of our mxml file to call the
EventBroadcaster. The mxml file is already rendered when the service called by
the EventBroadcaster returns the data. The problem we have is that we need to
disable certain controls of the view based on this returned data (An array
rendered in a data Grid). Is there any way to know
when a service (In our case a remote object) has finished returning the data (A
function, actionscript, etc.). The system is based in
Cairngorm, and the onResult method of the MyCommand.as is something like this: public function onResult(
event : Object ) : Void { mx.core.Application.application.detallesBLData
= event.result; } Our validation requires
the data in mx.core.Application.application.detallesBLData Hope this is more
explanatory of our problem. Best regards. J. De:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Rob Rusher You could use a
ViewHelper for that view. You could also set the showBusyCursor on the
RemoteObject to prevent the user for clicking anything until the screen is
ready. Regards, Rob Rusher RIA Consultant Macromedia Certified Flex
Instructor e: From:
By the way, I forgot to
mention that we are using the cairngorm Project microarchitecture, and so our
question would be towards finding the best way (or best practice) to achieve
this functionality. Your approach seems ok to
us, Tracy, but how would we implement this the cairngorm way? Regards. J. De: Could you disable them in
the mxml tag to start with, then, in a result handler on the RemoteObject, set
the final state? From:
Hi all, We have a view that contains a grid and some action
buttons. These action buttons must be disabled/enabled depending on the data
provided to the grid. The data is provided by a remoteObject, and the decision
of enabling/disabling these buttons is taken by the view. Everything is working
fine, except for this little decision part, since it starts rendering even
though the data returned from the remote object is not yet complete. Is there
any way to avoid the rendering of this little component until the remote object
call finishes? Any help will be appreciated. Thanks. Jesús Ramos Cardona +52 (55) 51 74 22 22 ext. 1250 Ixe Grupo Financiero Este
correo electrónico y sus anexos pueden contener información CONFIDENCIAL para
uso exclusivo de su destinatario. Si ha recibido este correo por error, por
favor, notifíquelo al remitente y bórrelo de su sistema. Muchas gracias. Las
opiniones expresadas en este correo son las de su autor y no son necesariamente
compartidas o apoyadas por la compañía. Ixe Grupo Financiero no asume aquí
obligaciones ni se responsabiliza del contenido de este correo, a menos que
dicha información sea confirmada por escrito por un representante autorizado.
No se garantiza que la transmisión de este correo sea segura o libre de
errores, podría haber sido viciada, perdida, destruida, haber llegado tarde, de
forma incompleta o contener VIRUS.
|
RE: [flexcoders] About synchronizing grid rendering with service completion
Jesus Salvador Ramos Cardona Wed, 10 Aug 2005 00:46:18 -0700
- RE: [flexcoders] About synchronizing grid ren... Jesus Salvador Ramos Cardona
- RE: [flexcoders] About synchronizing gri... Steven Webster
- RE: [flexcoders] About synchronizing... Steven Webster
- RE: [flexcoders] About synchronizing gri... Jesus Salvador Ramos Cardona