RE: [flexcoders] Setting Tree.selectedItem
Please do not hijack threads. If your post is not directly related to a current thread, start a new subject. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Terry Human Sent: Saturday, July 11, 2009 2:40 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Setting Tree.selectedItem Hello, I'm trying to do an application where the user can select images and put in on a panel (similar the example Diagrammer in the tour of Flex). Could you send me some example? Thanks _ De: Tracy Spratt tr...@nts3rd.com Para: flexcoders@yahoogroups.com Enviado: sábado, 11 de julio, 2009 17:26:10 Asunto: RE: [flexcoders] Setting Tree.selectedItem I have a couple examples on www.cflex.net http://www.cflex.net/ . Search for expand tree. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of bhaq1972 Sent: Friday, July 10, 2009 8:21 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Setting Tree.selectedItem I'm trying to set the selectedItem for the given example. But I'm having all sorts of problems. The tree's dataprovider is XML. I'm only interested in selecting the child nodes (@label == Receipt).. ..that means I have to expand the menu as well. Can someone give me some ideas? Code - mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml http://www.adobe.com/2006/mxml mx:Button label=test click=test( )/ mx:Tree id=menuTree labelField= @label width=40% height=90% showRoot=false dataProvider= {menu_data} / mx:Script ![CDATA[ public function test():void { //this is failing miserably- doesn't expandItem and adds // some other rubbish to the tree menuTree.selectedIt em = XML(menuTree. dataProvider[ 0]).node. node.(@label == Receipt); } ]] /mx:Script mx:XML id=menu_data xmlns= MenuOne node label=Receiving node title=Purchase Order label=Purchase Order / node title=Receipt label=Receipt / /node node label=Inventory node title=Stock SKU label=Stock SKU / node title=Stock Slot label=Stock Slot / /node /MenuOne /mx:XML /mx:Application
RE: [flexcoders] Setting Tree.selectedItem
Please do not hijack threads. If your post is not directly related to a current thread, start a new subject. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Terry Human Sent: Saturday, July 11, 2009 2:40 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Setting Tree.selectedItem Hello, I'm trying to do an application where the user can select images and put in on a panel (similar the example Diagrammer in the tour of Flex). Could you send me some example? Thanks _ De: Tracy Spratt tr...@nts3rd.com Para: flexcoders@yahoogroups.com Enviado: sábado, 11 de julio, 2009 17:26:10 Asunto: RE: [flexcoders] Setting Tree.selectedItem I have a couple examples on www.cflex.net http://www.cflex.net/ . Search for expand tree. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of bhaq1972 Sent: Friday, July 10, 2009 8:21 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Setting Tree.selectedItem I'm trying to set the selectedItem for the given example. But I'm having all sorts of problems. The tree's dataprovider is XML. I'm only interested in selecting the child nodes (@label == Receipt).. ..that means I have to expand the menu as well. Can someone give me some ideas? Code - mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml http://www.adobe.com/2006/mxml mx:Button label=test click=test( )/ mx:Tree id=menuTree labelField= @label width=40% height=90% showRoot=false dataProvider= {menu_data} / mx:Script ![CDATA[ public function test():void { //this is failing miserably- doesn't expandItem and adds // some other rubbish to the tree menuTree.selectedIt em = XML(menuTree. dataProvider[ 0]).node. node.(@label == Receipt); } ]] /mx:Script mx:XML id=menu_data xmlns= MenuOne node label=Receiving node title=Purchase Order label=Purchase Order / node title=Receipt label=Receipt / /node node label=Inventory node title=Stock SKU label=Stock SKU / node title=Stock Slot label=Stock Slot / /node /MenuOne /mx:XML /mx:Application
RE: [flexcoders] Setting Tree.selectedItem
I have a couple examples on www.cflex.net http://www.cflex.net/ . Search for expand tree. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of bhaq1972 Sent: Friday, July 10, 2009 8:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting Tree.selectedItem I'm trying to set the selectedItem for the given example. But I'm having all sorts of problems. The tree's dataprovider is XML. I'm only interested in selecting the child nodes (@label == Receipt)that means I have to expand the menu as well. Can someone give me some ideas? Code - mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml mx:Button label=test click=test()/ mx:Tree id=menuTree labelField=@label width=40% height=90% showRoot=false dataProvider={menu_data}/ mx:Script ![CDATA[ public function test():void { //this is failing miserably- doesn't expandItem and adds // some other rubbish to the tree menuTree.selectedItem = XML(menuTree.dataProvider[0]).node.node.(@label == Receipt); } ]] /mx:Script mx:XML id=menu_data xmlns= MenuOne node label=Receiving node title=Purchase Order label=Purchase Order / node title=Receipt label=Receipt / /node node label=Inventory node title=Stock SKU label=Stock SKU / node title=Stock Slot label=Stock Slot / /node /MenuOne /mx:XML /mx:Application
Re: [flexcoders] Setting Tree.selectedItem
Hello, I'm trying to do an application where the user can select images and put in on a panel (similar the example Diagrammer in the tour of Flex). Could you send me some example? Thanks De: Tracy Spratt tr...@nts3rd.com Para: flexcoders@yahoogroups.com Enviado: sábado, 11 de julio, 2009 17:26:10 Asunto: RE: [flexcoders] Setting Tree.selectedItem I have a couple examples on www.cflex.net. Search for “expand tree”. Tracy Spratt, Lariat Services, development services available From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of bhaq1972 Sent: Friday, July 10, 2009 8:21 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Setting Tree.selectedItem I'm trying to set the selectedItem for the given example. But I'm having all sorts of problems. The tree's dataprovider is XML. I'm only interested in selecting the child nodes (@label == Receipt).. ..that means I have to expand the menu as well. Can someone give me some ideas? Code - mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml mx:Button label=test click=test( )/ mx:Tree id=menuTree labelField= @label width=40% height=90% showRoot=false dataProvider= {menu_data} / mx:Script ![CDATA[ public function test():void { //this is failing miserably- doesn't expandItem and adds // some other rubbish to the tree menuTree.selectedIt em = XML(menuTree. dataProvider[ 0]).node. node.(@label == Receipt); } ]] /mx:Script mx:XML id=menu_data xmlns= MenuOne node label=Receiving node title=Purchase Order label=Purchase Order / node title=Receipt label=Receipt / /node node label=Inventory node title=Stock SKU label=Stock SKU / node title=Stock Slot label=Stock Slot / /node /MenuOne /mx:XML /mx:Application
[flexcoders] Setting Tree.selectedItem
I'm trying to set the selectedItem for the given example. But I'm having all sorts of problems. The tree's dataprovider is XML. I'm only interested in selecting the child nodes (@label == Receipt)that means I have to expand the menu as well. Can someone give me some ideas? Code - mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Button label=test click=test()/ mx:Tree id=menuTree labelField=@label width=40% height=90% showRoot=false dataProvider={menu_data}/ mx:Script ![CDATA[ public function test():void { //this is failing miserably- doesn't expandItem and adds // some other rubbish to the tree menuTree.selectedItem = XML(menuTree.dataProvider[0]).node.node.(@label == Receipt); } ]] /mx:Script mx:XML id=menu_data xmlns= MenuOne node label=Receiving node title=Purchase Order label=Purchase Order / node title=Receipt label=Receipt / /node node label=Inventory node title=Stock SKU label=Stock SKU / node title=Stock Slot label=Stock Slot / /node /MenuOne /mx:XML /mx:Application