Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

relation to a table

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
anwarbv



Joined: 27 Nov 2006
Posts: 3

PostPosted: Mon Nov 27, 2006 4:16 am    Post subject: relation to a table Reply with quote

hello i have a table with the following structure

id Code Name Type
1 100 Parent 0
2 200 Parent A 1
3 300 Parent B 1
4 201 Child 2
5 301 Child 3

so the data is in this hierarchy
Parent
+----------Parent A
+----------------Child-201
+----------Parent B
+----------------Child-301


i would like the same to be represented on the virtual tree can you show me how.

also how do i activate to show the expanded icons

regards
Anwar
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Nov 27, 2006 8:37 am    Post subject: Reply with quote

If the relation between the parent and child is not implied only in the item Code then you would need to handle the GetChildren event to return the child rows for a given parent row (by filtering the table rows based on the code).

Quote:
also how do i activate to show the expanded icons


What exactly do you mean?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
anwarbv



Joined: 27 Nov 2006
Posts: 3

PostPosted: Wed Nov 29, 2006 3:28 am    Post subject: GetChildren Reply with quote

Hello,

As you suggested i used the getchildren event of the vitrualtree , i already load this tree with level 1 data during my form load event, but after i added the getchildren, it does not load the data.

can you please tell me how this is done. for the type of display i want i have shown the data structure above.

regards
Anwar
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Nov 29, 2006 4:02 am    Post subject: Reply with quote

Could you post the code for your GetChildren event. It might also help if you could email a complete zipped project to support@infralution.com
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group