Groups | Blog | Home
all groups > macromedia flash flash remoting > june 2004 >

macromedia flash flash remoting : v2 Tree Component with Flash Remomoting


rduong
6/25/2004 4:15:23 PM
Hi,

I am trying to populate the v2 Tree component with results coming from a
database query. I'm trying to populate the data either through the web
services or through flash remoting. Does anyone have experience generating the
tree component dynamically through a query? and have some sample code that
they would like to share?

Thanks in advance.

-ray
Stephen Beattie
7/23/2004 5:43:26 PM
You could send back XML from the server and use this for the tree
dataProvider, otherwise you'll need to create the tree structure manually by
looping though your result and creating the XML client-side. You can use
the tree without XML but it's much easier to manipulate an XML object that's
serving as you dataProvider

HTH

Stephen


[quoted text, click to view]

a.campbell NO[at]SPAM choiceit.com
8/16/2004 4:40:13 PM
Ray, I have the same reqmt. & don't want to use XML - but instead the
speed of flash remoting. It's pretty straightforward.
Set up your web service and in the function where the query results
are returned, just substitute the label and data node parameters, for
the node with the query results. If necessary you can put this in a
loop:
eg.
var objCurrentParentNode:Object =
treCategories.addTreeNode(result.items[0].CategoryName,result.items[0].CategoryID);

Regards,alexc

[quoted text, click to view]
AddThis Social Bookmark Button