tree needs data like following so try using the same VO throughout the nodes
+label
- label
- label
i suggest you create single VO that includes all the attributes of CategoryVO and ItemVO like this
> label:String -----------------> name and title are same
> id:Number
> arItems:Array
> start:Date
> id:Number
> arItems:Array
> start:Date
if you chaneg "label" to any other string then the "labelField" property of tree should be set .
this id becoz you can assign only one labelField for a tree if you give different labelFields then it will behave like this
ninjascience <[EMAIL PROTECTED]> wrote:
ninjascience <[EMAIL PROTECTED]> wrote:
Follow up:
I tried makig the Date field private in my value object. It still
shows up as a tree node, and an alert call that references it still
shows the data! So much for privacy!
--- In flexcoders@yahoogroups.com, "ninjascience" <[EMAIL PROTECTED]> wrote:
>
> m using an array of ValueObjects that contain arrays of ValueObjects
> as a DataProvider for a tree component. Everything was working just
> fine until I added a Date field to one of my Value objects. Now the
> tree thinks that they should be nodes on the tree.
>
> My VOs are like this
>
> CategoryVO
> title:String
> id:Number
> arItems:Array
>
> ItemVO
> name:String
> id:Number
> start:Date
>
> I want my tree to look like this
>
> +SomeCategory
> ++Item A
> ++Item B
> +OtherCategory
> ++Item C
> ++Item D
>
> but it looks like this...
> +SomeCategory
> ++Item A
> +++[object Object], 1, , Fri Nov 4 00:00:00 GMT-0800 2005, null
> ++Item B
> +++[object Object], 1, , Fri Nov 4 00:00:00 GMT-0800 2005, null
> +OtherCategory
> ++Item C
> +++[object Object], 1, , Fri Nov 4 00:00:00 GMT-0800 2005, null
> ++Item D
> +++[object Object], 1, , Fri Nov 4 00:00:00 GMT-0800 2005, null
>
> Is there anyway to specifiy which objects get included as tree nodes
> and which dont? I want to add a third level of composition within
> each Item node.
> thanks,
> --
> Ryan P. Miller
>
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
--
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
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.