Tree.selectedItem.getProperty(“id”)
should work for you too.
Robert L. Brueckmann
Web Developer
Merlin Securities,LLC
595 Madison Avenue
New York, NY 10022
p: 212.822.4821
f: 212.822.4820
From: jivankohinoor
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005
5:41 PM
To: [email protected]
Subject: [flexcoders] Re: Cannot
retrieve tree items properties
It works, much thanks for your help
BUT, I saw many examples using my first syntax, I
have Flex 1.5, what
did I miss ?
--- In [email protected],
"dustin_speer" <[EMAIL PROTECTED]> wrote:
>
> Try tree.selectedItem.attributes.id or
> tree.selectedItem.attributes.data or
> tree.selectedItem.attributes.label.
>
> --- In [email protected],
"jivankohinoor" <[EMAIL PROTECTED]>
> wrote:
> >
> > I have a strange problem with the tree
component.
> > I fill the tree with live http XML, it
works fine, I am even able to
> > modify item icons.
> > BUT, I cannot retrieve the selected
object, when I dump the
> property :
> > tree.selectedItem into a TextArea
field, I get the XML code for
> this
> > node :
> > <object id="60"
label="Anomalies-New" icon="icon1" />
> > And, if I try to retrieve a property :
tree.selectedItem.id, the
> > result is "undefined"
> > I have the same problem whatever the
resultType of the httpService
> is,
> > xml or object.
> > BUT, with object, I also get an extra
root node, and my icons are no
> > more displayed
> > I also tried to load an XML URL
directly, instead of getting it
> from a
> > servlet, it never works.
> >
> > How does Flex manage equivalence
XML/objects ? I thought that XML
> data
> > was converted to AS objects, or amI
wrong ?
> > Thanks for helping
This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.
Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.
|