This
does not work wither. Is this the best way to do this? Is there another way?
What are the best practices for accomplishing this? -----Mensaje
original----- I thought what you did might work
too. You could declare pop as a CambioPasswordForm (instead of
TitleWindow) and then on the next line assign pop.dataItem? Matt From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS SALVADOR Hi all. Is there a way in which I can pass data from
a grid to a popped up TitleWindow? This is the code that pops the TWindow:
private function showCambioPassword(Void):Void {
var pop:TitleWindow = TitleWindow(PopUpManager.createPopUp(this,
CambioPasswordForm, true, {dataItem:usuarioSeleccionado, style:this,
owner:this}));
pop.centerPopUp();
} This function is called when a button is
pressed (which, in turn, enables itself when the data grid has a selected
item). The variable ‘usuarioSeleccionado’
is a previously setted variable of type ‘UsuarioExternoImpl’ in my
class. The ‘CambioPasswordForm’ is a
Canvas that contains the rest of the components required by the interface. I believed that the init object at the end
of the createPopUp method could contain variables that were passed to the
CambioPasswordForm component, and as such I could manipulate the data contained
in them in the popped-up window. I tried this with this code: class
com.bursatec.seguridad.presentation.views.usuarios.CambioPasswordForm extends
TitleWindow {
var dataItem:UsuarioExternoImpl;
…
… } I thought that the matching dataItem both
in the init object in the createPopUp method would set it to the proper value,
and thus could access it from my CambioPasswordForm component, but this did not
work. How can I accomplish this? Please help. J.
|
RE: [flexcoders] Flex 1.5: Passing selected data to a popup
RAMOS CARDONA JESUS SALVADOR Wed, 15 Mar 2006 12:36:11 -0800
- RE: [flexcoders] Flex 1.5: Passing selected d... RAMOS CARDONA JESUS SALVADOR
- [flexcoders] Re: Flex 1.5: Passing selec... Doug Lowder
- RE: [flexcoders] Flex 1.5: Passing selec... RAMOS CARDONA JESUS SALVADOR