flower175 بتاريخ: 16 مارس 2008 تقديم بلاغ مشاركة بتاريخ: 16 مارس 2008 Dear All how could i creat a hierarchical tree when i did the followingselect 1 , level, ename , null, empno from empstart with lower(ename) = lower(:blockname. textitem)connect by prior empno=mgrbut actually it doesnt workand when i used devloper 6i with static tree i have to put select 1 , level, ename , null,to_char( empno )while i dont need that with 10gmy question1- how create Dynamic hierarchical tree2-why i should put to_char with 6ithanks alot اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
jamal_rrkk بتاريخ: 17 مارس 2008 تقديم بلاغ مشاركة بتاريخ: 17 مارس 2008 السلام عليكم ورحمة الله وبركاتهاخي الكريمجرب كتابة الكود كما يلي WHEN-MOUSE-DOUBLECLICK declare v_htree ITEM; pp integer ; current_node FTREE.NODE; begin v_htree := Find_Item('tree_bl.htree') ; current_node := Ftree.Get_Tree_Selection(v_htree, 1) ; pp := tree.GET_TREE_NODE_PROPERTY(v_htree,current_node,Ftree.NODE_VALUE); ftree.set_tree_property('tree_bl.htree' , ftree.query_text , 'select -1 , level , '' ''||ac_nam||'' / ''||ac_num , icn , ac_num from act start with ac_num ='||pp|| 'connect by prior ac_num = levl_c') ; ftree.populate_tree('tree_bl.htree') ; WHEN-TREE-NODE-SELECTED message('التسلسل الشجري'||' '||:system.trigger_node , no_acknowledge) ; حيث الكود السابق يعمل بشكل ممتازجزاك الله كل خير اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.