Help For Tree in Form 6i [message #257688] |
Thu, 09 August 2007 00:38  |
alijeyan
Messages: 184 Registered: January 2007 Location: IRAN
|
Senior Member |
|
|
i want use the Heirarchical tree in My form .
when i use static Record group tree is Fine but when i put data
in table and use record group fom table tree is empty .
i use this code for populate tree :
declare
htree item ;
begin
htree:=find_item ('my_block.tree1');
ftree.populate_tree(htree);
end;
my data in table is
initail_stat depth lable icon data
-1 1 car '' car
0 2 honda '' civic
1 1 airplane '' plane
0 2 boing '' 747
0 2 boing '' 757
and my record group is
select initail_stat,depth,lable,icon,data from table_tree;
please help me.
ThanQ IRAN ALI
|
|
|
|
|
|
|
Re: Help For Tree in Form 6i [message #260924 is a reply to message #259782] |
Tue, 21 August 2007 04:56   |
alijeyan
Messages: 184 Registered: January 2007 Location: IRAN
|
Senior Member |
|
|
Thanq All
i sent my code .
in this code i have 2 Tree :
1 - Tree15 with static record_group and work
2 - Tree13 with query record_group annd not work
please help me .
|
|
|
Re: Help For Tree in Form 6i [message #260940 is a reply to message #257688] |
Tue, 21 August 2007 05:29   |
hemavb
Messages: 103 Registered: May 2007 Location: Dubai , UAE
|
Senior Member |
|
|
when using a query to fetch a tree... donot use the "record group" property, use the "data query" property.
If you take the querry from your rg_query record group and put it in the "data query" property of tree13, the application works.
SO here is your solution.
oh yeah... donot forget to make the "record group"property for tree 13 null.
[Updated on: Tue, 21 August 2007 05:29] Report message to a moderator
|
|
|
|
|