[flexcoders] How to invalidate ViewStack Pages

2006-10-14 Thread jlentz2112
Hi,

I've got a ViewStack that I navigate around using selectedIndex.  It
works fine the first time I go to a page, but when I leave and return
to that same page, I need to have all the TextInput fields
re-initialized.  It doesn't seem to do that.  Returning to a
previously selected index displays the data that was there when I left
that page - not the new data I have.  Is there a way to force a child
page to create or refresh its different fields?

Thanks,

jelentz






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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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



RE: [flexcoders] How to invalidate ViewStack Pages

2006-10-14 Thread Dimitrios Gianninas

Use the onShow() event of that component (I assume u are using a Box or Panel 
or Canvas, etc...) to reset its data.

Dimitrios Gianninas
Optimal Payments Inc.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of jlentz2112
Sent: Fri 10/13/2006 11:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to invalidate ViewStack Pages
 
Hi,

I've got a ViewStack that I navigate around using selectedIndex.  It
works fine the first time I go to a page, but when I leave and return
to that same page, I need to have all the TextInput fields
re-initialized.  It doesn't seem to do that.  Returning to a
previously selected index displays the data that was there when I left
that page - not the new data I have.  Is there a way to force a child
page to create or refresh its different fields?

Thanks,

jelentz





-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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/
 
winmail.dat

RE: [flexcoders] How to invalidate ViewStack Pages

2006-10-14 Thread Gordon Smith












Databinding is one way to accomplish this:



 mx:TextInput id=name
text={someDataObject.name}/



Another would be to write a
change handler on the ViewStack. Switch on the selectedIndex and
re-initialize the pane you're changing to.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jlentz2112
Sent: Friday, October 13, 2006
8:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to
invalidate ViewStack Pages











Hi,

I've got a ViewStack that I navigate around using selectedIndex. It
works fine the first time I go to a page, but when I leave and return
to that same page, I need to have all the TextInput fields
re-initialized. It doesn't seem to do that. Returning to a
previously selected index displays the data that was there when I left
that page - not the new data I have. Is there a way to force a child
page to create or refresh its different fields?

Thanks,

jelentz






__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___