On 10/17/06, Daniel <[EMAIL PROTECTED]> wrote:
--- In [email protected], "Clint Tredway" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
![]()
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
__,_._,___
- [flexcoders] LinkBar ViewStack Problem Daniel
- Re: [flexcoders] LinkBar ViewStack Problem Clint Tredway
- [flexcoders] Re: LinkBar ViewStack Problem Daniel
- Re: [flexcoders] Re: LinkBar ViewStack Problem Clint Tredway
- [flexcoders] Re: LinkBar ViewStack Problem Daniel
- Re: [flexcoders] Re: LinkBar ViewStack... Clint Tredway
- RE: [flexcoders] LinkBar ViewStack Problem Andrew Trice
Reply via email to

