Sounds like the deferred instantiation behavior of Accordion and other
nav components.  Search the archives/google for that term and for
"creationPolicy"

 

To establish if that is the issue, for testing purposes only, set
creationPolicy="all" on the accordion.  If that fixes it, reverse that
and study up on the right way to fix it.

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ron_mori
Sent: Thursday, July 10, 2008 2:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Component creation - Data Binding

 

Think: master-detail implemented in an Accordion container.

When user either selects an item from a dataGrid listing -OR- 
User clicks a link to initiate a new item -

ActionScript code then..
1. A SelectItem var in a detail form is set to either
a. the selectedItem from the dataGrid 
b. new Item is created
2. The accordion pane containing the item detail form is selected. 

My question is about (I think) data binding and component creation
timing. The problem is that when the detail form is displayed THE
FIRST TIME ONLY, all the editable fields are blank, while the display
only fields (bound to the same selectItem) are displayed correctly.

What am I missing here?

thanks in advance

 

Reply via email to