Re: [SPAM] [flexcoders] How to get all tree node parents upon select

2010-01-11 Thread Amy


--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> If your dataProvider is XML, you can use parent() to recursively traverse
> the ancestors.  If it is XMLListCollection, I am not sure, but would expect
> there to be some kind of parent property.

Each node in an XMLListCollection is XML, and will have all the properties, 
methods, and data available to that data type.

HTH;

Amy



RE: [SPAM] [flexcoders] How to get all tree node parents upon select

2010-01-11 Thread Tracy Spratt
". i did not encode the result into xml format" eh? I don't understand what
you mean by that.  You are using e4x xml here.

 

"parent" is a property pointing to the parent component in the document
model.  I do not think you want that.  "parent()", applied to an XML node
return an XML node,

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of eric v
Sent: Sunday, January 10, 2010 5:14 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to get all tree node parents upon select

 

  


maybe this will give you some insight. i did not encode the result into xml
format..

 



http://www.adobe.com/2006/mxml"; layout="absolute">

















 

 

DOES ANYONE KNOW WHAT KIND OF VARIABLE parent  WOULD BE.. INSTANTIATED AS?

 





RE: [SPAM] RE: [SPAM] [flexcoders] How to get all tree node parents upon select - sorry about the duplicates

2010-01-10 Thread Tracy Spratt
Sorry about the duplicates, Outlook had a seizure.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Sunday, January 10, 2010 1:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] [flexcoders] How to get all tree node parents
upon select

 

  

If your dataProvider is XML, you can use parent() to recursively traverse
the ancestors.  If it is XMLListCollection, I am not sure, but would expect
there to be some kind of parent property.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Lafrance
Sent: Saturday, January 09, 2010 8:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to get all tree node parents upon select

 

  

I have a tree, and when user clicks an item in the tree, I want to get all
the parents of the selectedItem node.

So if I have this XML:



1001



2001



3001


 

If user clicks on the 1001 sku, I want to get something like this:



Also if I have a custom component, perhaps based on tree or but maybe not,
and if this custom component shows the actual XML and used can click on XML
elements or XML attributes, how can I use the selected item to get the
parent nodes, so if they click on the value="100", I want to get this:



I need this because I have a set of fields, and users will drag their XML
node elements or attributes to my fields, to define a mapping between their
XML and my fields.

The selectedItem is just a snippet of XML cut off from its source
XMLListCollection, and I might be able to search the XMLListCollection, but
what if there were say  elements at more than one level in the XML? I'm
guessing a search might return multiple hits for a selected element, when I
want the actual parent nodes for the actual selected node. 





RE: [SPAM] RE: [SPAM] [flexcoders] How to get all tree node parents upon select - sorry about the duplicates

2010-01-10 Thread Tracy Spratt
Sorry about the duplicates, Outlook had a seizure.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Sunday, January 10, 2010 1:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] [flexcoders] How to get all tree node parents
upon select

 

  

If your dataProvider is XML, you can use parent() to recursively traverse
the ancestors.  If it is XMLListCollection, I am not sure, but would expect
there to be some kind of parent property.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Lafrance
Sent: Saturday, January 09, 2010 8:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to get all tree node parents upon select

 

  

I have a tree, and when user clicks an item in the tree, I want to get all
the parents of the selectedItem node.

So if I have this XML:



1001



2001



3001


 

If user clicks on the 1001 sku, I want to get something like this:



Also if I have a custom component, perhaps based on tree or but maybe not,
and if this custom component shows the actual XML and used can click on XML
elements or XML attributes, how can I use the selected item to get the
parent nodes, so if they click on the value="100", I want to get this:



I need this because I have a set of fields, and users will drag their XML
node elements or attributes to my fields, to define a mapping between their
XML and my fields.

The selectedItem is just a snippet of XML cut off from its source
XMLListCollection, and I might be able to search the XMLListCollection, but
what if there were say  elements at more than one level in the XML? I'm
guessing a search might return multiple hits for a selected element, when I
want the actual parent nodes for the actual selected node. 





RE: [SPAM] [flexcoders] How to get all tree node parents upon select

2010-01-10 Thread Tracy Spratt
If your dataProvider is XML, you can use parent() to recursively traverse
the ancestors.  If it is XMLListCollection, I am not sure, but would expect
there to be some kind of parent property.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Lafrance
Sent: Saturday, January 09, 2010 8:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to get all tree node parents upon select

 

  

I have a tree, and when user clicks an item in the tree, I want to get all
the parents of the selectedItem node.

So if I have this XML:



1001



2001



3001


 

If user clicks on the 1001 sku, I want to get something like this:



Also if I have a custom component, perhaps based on tree or but maybe not,
and if this custom component shows the actual XML and used can click on XML
elements or XML attributes, how can I use the selected item to get the
parent nodes, so if they click on the value="100", I want to get this:



I need this because I have a set of fields, and users will drag their XML
node elements or attributes to my fields, to define a mapping between their
XML and my fields.

The selectedItem is just a snippet of XML cut off from its source
XMLListCollection, and I might be able to search the XMLListCollection, but
what if there were say  elements at more than one level in the XML? I'm
guessing a search might return multiple hits for a selected element, when I
want the actual parent nodes for the actual selected node. 





RE: [SPAM] [flexcoders] How to get all tree node parents upon select

2010-01-10 Thread Tracy Spratt
If your dataProvider is XML, you can use parent() to recursively traverse
the ancestors.  If it is XMLListCollection, I am not sure, but would expect
there to be some kind of parent property.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Lafrance
Sent: Saturday, January 09, 2010 8:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to get all tree node parents upon select

 

  

I have a tree, and when user clicks an item in the tree, I want to get all
the parents of the selectedItem node.

So if I have this XML:



1001



2001



3001


 

If user clicks on the 1001 sku, I want to get something like this:



Also if I have a custom component, perhaps based on tree or but maybe not,
and if this custom component shows the actual XML and used can click on XML
elements or XML attributes, how can I use the selected item to get the
parent nodes, so if they click on the value="100", I want to get this:



I need this because I have a set of fields, and users will drag their XML
node elements or attributes to my fields, to define a mapping between their
XML and my fields.

The selectedItem is just a snippet of XML cut off from its source
XMLListCollection, and I might be able to search the XMLListCollection, but
what if there were say  elements at more than one level in the XML? I'm
guessing a search might return multiple hits for a selected element, when I
want the actual parent nodes for the actual selected node. 





RE: [SPAM] [flexcoders] How to get all tree node parents upon select

2010-01-10 Thread Tracy Spratt
If your dataProvider is XML, you can use parent() to recursively traverse
the ancestors.  If it is XMLListCollection, I am not sure, but would expect
there to be some kind of parent property.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Lafrance
Sent: Saturday, January 09, 2010 8:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to get all tree node parents upon select

 

  

I have a tree, and when user clicks an item in the tree, I want to get all
the parents of the selectedItem node.

So if I have this XML:



1001



2001



3001


 

If user clicks on the 1001 sku, I want to get something like this:



Also if I have a custom component, perhaps based on tree or but maybe not,
and if this custom component shows the actual XML and used can click on XML
elements or XML attributes, how can I use the selected item to get the
parent nodes, so if they click on the value="100", I want to get this:



I need this because I have a set of fields, and users will drag their XML
node elements or attributes to my fields, to define a mapping between their
XML and my fields.

The selectedItem is just a snippet of XML cut off from its source
XMLListCollection, and I might be able to search the XMLListCollection, but
what if there were say  elements at more than one level in the XML? I'm
guessing a search might return multiple hits for a selected element, when I
want the actual parent nodes for the actual selected node. 





RE: [SPAM] [flexcoders] How to get all tree node parents upon select

2010-01-10 Thread Tracy Spratt
If your dataProvider is XML, you can use parent() to recursively traverse
the ancestors.  If it is XMLListCollection, I am not sure, but would expect
there to be some kind of parent property.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Lafrance
Sent: Saturday, January 09, 2010 8:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to get all tree node parents upon select

 

  

I have a tree, and when user clicks an item in the tree, I want to get all
the parents of the selectedItem node.

So if I have this XML:



1001



2001



3001


 

If user clicks on the 1001 sku, I want to get something like this:



Also if I have a custom component, perhaps based on tree or but maybe not,
and if this custom component shows the actual XML and used can click on XML
elements or XML attributes, how can I use the selected item to get the
parent nodes, so if they click on the value="100", I want to get this:



I need this because I have a set of fields, and users will drag their XML
node elements or attributes to my fields, to define a mapping between their
XML and my fields.

The selectedItem is just a snippet of XML cut off from its source
XMLListCollection, and I might be able to search the XMLListCollection, but
what if there were say  elements at more than one level in the XML? I'm
guessing a search might return multiple hits for a selected element, when I
want the actual parent nodes for the actual selected node. 





RE: [SPAM] [flexcoders] How to get all tree node parents upon select

2010-01-10 Thread Tracy Spratt
If your dataProvider is XML, you can use parent() to recursively traverse
the ancestors.  If it is XMLListCollection, I am not sure, but would expect
there to be some kind of parent property.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Lafrance
Sent: Saturday, January 09, 2010 8:58 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to get all tree node parents upon select

 

  

I have a tree, and when user clicks an item in the tree, I want to get all
the parents of the selectedItem node.

So if I have this XML:



1001



2001



3001


 

If user clicks on the 1001 sku, I want to get something like this:



Also if I have a custom component, perhaps based on tree or but maybe not,
and if this custom component shows the actual XML and used can click on XML
elements or XML attributes, how can I use the selected item to get the
parent nodes, so if they click on the value="100", I want to get this:



I need this because I have a set of fields, and users will drag their XML
node elements or attributes to my fields, to define a mapping between their
XML and my fields.

The selectedItem is just a snippet of XML cut off from its source
XMLListCollection, and I might be able to search the XMLListCollection, but
what if there were say  elements at more than one level in the XML? I'm
guessing a search might return multiple hits for a selected element, when I
want the actual parent nodes for the actual selected node.