Thank you Clint. --- In [email protected], "Clint Tredway" <[EMAIL PROTECTED]> wrote: > > the canvas that holds the text input is a child of the Viewstack and the > creationPolicy, I believe, auto sets to auto. this means that they get > created when they are needed, not before. You can set the creation Policy to > 'all', but that can get intensive as your app grows. > > On 10/17/06, Daniel <[EMAIL PROTECTED]> wrote: > > > > --- In [email protected] <flexcoders%40yahoogroups.com>, "Clint > > Tredway" <grumpee@> wrote: > > > > > Thanks, binding is a solution. However, I keep thinking how is that > > the text field is not created 'yet'? Is there another way? > > > > Thanks again. > > > > > This is a creation issue. Basically, the input text field is not > > 'created' > > > yet. You have a couple of options. The simplest, is just bind the > > text of > > > the input to the value you want to store there. > > > > > > <mx:TextInput text={list.selectedItem.somevalue}"/> > > > > > > There are other options, but that should get you going. > > > > > > On 10/17/06, Daniel <danboh@> wrote: > > > > > > > > Hello all! > > > > > > > > I've been having this particular problem, I have 2 canvas inside a > > > > viewStack, lest say something like: > > > > > > > > <mx:ViewStack id="viewStack" width="100%" height="100%"> > > > > <mx:Canvas id="list" label="List"> > > > > <mx:DataGrid doubleClickEnabled="true" > > > > doubleClick="viewStack.selectedIndex = 1; > > > > input.text="list.selectedItem.someValue"> > > > > </mx:DataGrid> > > > > </mx:Canvas> > > > > <mx:Canvas id="form" label="Form"> > > > > <mx:TextInput id="input"/> > > > > </mx:Canvas> > > > > </mx:ViewStack> > > > > > > > > Its simple, but whenever I double-click on the DataGrid, Flex gives an > > > > error saying that it can't access a null object (referring to the > > > > textinput "input" that is defined inside the second Canvas and is > > hidden). > > > > > > > > I've noticed that when one uses viewstacks or accordions and wants to > > > > access to an object inside a container that is hidden to initialize > > > > it, there is no way to access it. > > > > > > > > I've tried selecting the canvas first and then assinging the data, > > > > like I did in the code above, but doesn't work either. > > > > > > > > I really need help with this, otherwise Im gonna have to change the > > > > layout of the hall application. > > > > > > > > Thanks in advance! > > > > > > > > > > > > > > > > > > > > > > > > -- > > > diabetic? http://www.diabetesforums.com > > > Albert Einstein - "It's not that I'm so smart, it's just that I stay > > with > > > problems longer." > > > > > > > > > > > > > -- > diabetic? http://www.diabetesforums.com > Albert Einstein - "It's not that I'm so smart, it's just that I stay with > problems longer." >
-- 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/

