RE: [flexcoders] Flex 1.5: Passing selected data to a popup

2006-03-15 Thread RAMOS CARDONA JESUS SALVADOR










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-
De: Matt Chotin
[mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 15 de Marzo
de 2006 12:54 a.m.
Para: flexcoders@yahoogroups.com
Asunto: RE: [flexcoders] Flex 1.5:
Passing selected data to a popup



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
Sent: Tuesday, March 14, 2006 8:27
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5:
Passing selected data to a popup





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.










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex 1.5: Passing selected data to a popup

2006-03-15 Thread RAMOS CARDONA JESUS SALVADOR










Allow
me to correct myself. This does work, but both dataItem
variables (the one being sent in the initObj in the createPopUp method, and the reference received by the
component being popped-up) must be declared and trated
as Object. Typing them as any other type will not work; cannot
imagine why?



Thank
you all.



Regards.



J.



-Mensaje
original-
De: RAMOS CARDONA JESUS SALVADOR 
Enviado el: Miércoles, 15 de Marzo
de 2006 02:35 p.m.
Para: flexcoders@yahoogroups.com
Asunto: RE: [flexcoders] Flex 1.5:
Passing selected data to a popup



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-
De: Matt Chotin [mailto:[EMAIL PROTECTED]

Enviado el: Miércoles, 15 de Marzo
de 2006 12:54 a.m.
Para: flexcoders@yahoogroups.com
Asunto: RE: [flexcoders] Flex 1.5:
Passing selected data to a popup



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
Sent: Tuesday,
 March 14, 2006
8:27
 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5:
Passing selected data to a popup





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.











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex 1.5: Passing selected data to a popup

2006-03-14 Thread Matt Chotin










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:flexcoders@yahoogroups.com] On Behalf Of RAMOS CARDONA JESUS SALVADOR
Sent: Tuesday, March 14, 2006 8:27
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5:
Passing selected data to a popup





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.









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.