Page 1 of 1

ListTree

Posted: Fri Nov 28, 2014 12:43 am
by djrikki
For a new project I am using ListTree for the first time and I am trying to embed some rather complicated information with the userdata property of a line item for later extraction.

Code: Select all

        <item id="hgroup-button1" userdata="button1;Button%201;b;0;A%20button;b;0;0">A Button</item>
However, using Listtree.GetEntry the resulting Table does not return the userdata property.

Please, I do hope this can be fixed/implemented sooner rather than later so I may continue with my exciting new project.

PS. A generic question regarding the Userdata property - is it possible to store Binary information in it or is purely a string of characters only?

Re: ListTree

Posted: Fri Nov 28, 2014 4:37 pm
by airsoftsoftwair
However, using Listtree.GetEntry the resulting Table does not return the userdata property. Please, I do hope this can be fixed/implemented sooner rather than later so I may continue with my exciting new project.
Who says that Listtree.GetEntry() is to return the userdata property? You have to use Notify.UserData for that, see here:
http://www.hollywood-mal.com/docs/html/ ... rData.html
PS. A generic question regarding the Userdata property - is it possible to store Binary information in it or is purely a string of characters only?
When setting userdata as part of the XML tag you are only allowed to associate a character string with the userdata field. When using mui.Set(), however, you may associate random data with the property (tables, functions, binary strings...) Once again, see here:
http://www.hollywood-mal.com/docs/html/ ... rData.html

Re: ListTree

Posted: Sat Nov 29, 2014 5:29 pm
by djrikki
Doh now I feel stupid!

Cool am glad User data can contain mixed data will make life much easier.