Always use getProperty(“postcode”), not .attributes.  If you happen to change to not using XML your code will break.

 


From: [email protected] [mailto:[email protected]] On Behalf Of digital_eyezed
Sent: Friday, August 05, 2005 5:33 AM
To: [email protected]
Subject: [flexcoders] Re: Dynamic Tree and VO's

 

Yip, that did it.

Thanks,

Iain

--- In [email protected], "Michael Herron" <[EMAIL PROTECTED]>
wrote:
> How about
>

>
> event.selectedItem.attributes.postcode?
>

>
> I guess label works as its kind of native to the tree..
>

>
> Mike.
>
> ________________________________
>
> From: [email protected]
[mailto:[email protected]] On Behalf Of bhaq1972
> Sent: 05 August 2005 13:09
> To: [email protected]
> Subject: [flexcoders] Re: Dynamic Tree and VO's
>

>
> try
>
> event.selectedItem.postcode
> or
> event.selectedItem.POSTCODE
> or
> event.selectedItem['postcode']
>
>
> --- In [email protected], "digital_eyezed"
> <[EMAIL PROTECTED]> wrote:
> > Sorry, that didn't work either.
> >
> > Any other ideas??
> >
> > --- In [email protected], João Fernandes
> > <[EMAIL PROTECTED]> wrote:
> > > Hi Iain,
> > >
> > > 
> > >
> > > Try with selectedNode instead selectedItem.
> > >
> > > 
> > >
> > > João Fernandes
> > >
> > > Secção de Desenvolvimento
> > >
> > > Departamento de Informática
> > >
> > > ________________________________
> > >
> > > From: [email protected]
> > [mailto:[email protected]] On Behalf Of digital_eyezed
> > > Sent: sexta-feira, 5 de Agosto de 2005 12:03
> > > To: [email protected]
> > > Subject: [flexcoders] Dynamic Tree and VO's
> > >
> > > 
> > >
> > > Hi,
> > >
> > > I have a tree which is populated (through the dataProvider)
from
> a
> > > returned array of VO's from a RemoteObject Call. Within the VO
> is
> > a
> > > number of attributes, two of the attributes are called data
and
> > label.
> > > The tree shows ok. I want to be able to extract the other
> > attributes
> > > that are associated with this selectedItem and can't seem to
get
> > the
> > > data out. How do I do this? For example, another attribute is
> > > call 'postcode' so I tried to use change="myVariable =
> > > event.selectedItem.getProperty('postcode')" but this did not
> work,
> > > although if I change the 'postcode' to 'label' then I get the
> > label.
> > >
> > > Can you help?
> > >
> > > Regards,
> > >
> > > Iain
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%
<http://www.mail-archive.com/flexcoders%25>
> > 40yahoogroups.com
> > >
> > >
> > >
> > >
> > > ________________________________
> > >
> > > YAHOO! GROUPS LINKS
> > >
> > > 
> > >
> > > *      Visit your group "flexcoders
> > <http://groups.yahoo.com/group/flexcoders> " on the web.
> > >        
> > > *      To unsubscribe from this group, send an email to:
> > >       [EMAIL PROTECTED]
<mailto:flexcoders-
> > [EMAIL PROTECTED]>
> > >        
> > > *      Your use of Yahoo! Groups is subject to the Yahoo!
Terms of
> > Service <http://docs.yahoo.com/info/terms/> .
> > >
> > > 
> > >
> > > ________________________________
>
>
>
>
>
> --
> 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
>
> Computer software testing <http://groups.yahoo.com/gads?
t=ms&k=Computer+software+testing&w1=Computer+software+testing&w2=Macr
omedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=kh2Cgu
JwmatU5oBXjFo9Rg> 
>
> Macromedia flex <http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Computer+software+testing&w2=Macromedia+fle
x&w3=Development&w4=Software+developer&c=4&s=93&.sig=dAUcEV7do91-
wrRtVS641g> 
>
> Development <http://groups.yahoo.com/gads?
t=ms&k=Development&w1=Computer+software+testing&w2=Macromedia+flex&w3
=Development&w4=Software+developer&c=4&s=93&.sig=AlxNUQBOI7Io7S7nhmxV
0Q> 
>
> Software developer <http://groups.yahoo.com/gads?
t=ms&k=Software+developer&w1=Computer+software+testing&w2=Macromedia+
flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=QWIit8JayomoI
HLVkV3FDg> 
>

>

>

>
> ________________________________
>
> YAHOO! GROUPS LINKS
>

>
> *      Visit your group "flexcoders
<http://groups.yahoo.com/group/flexcoders> " on the web.
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED] <mailto:flexcoders-
[EMAIL PROTECTED]>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
>

>
> ________________________________





--
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
Computer software testing Macromedia flex Development
Software developer


YAHOO! GROUPS LINKS




Reply via email to