بتاريخ: 4 يونيو 201114 سنة comment_212859 السلام عليكمكيف من الممكن الحصول على القيمة التي تم اخايارها في الـ Tree تقديم بلاغ
بتاريخ: 5 يونيو 201114 سنة comment_212872 السلام عليكم ورحمة الله وبركاتهWHEN-TREE-NODE-SELECTED declare v_htree ITEM; pp integer ; current_node FTREE.NODE; num1 integer ; begin message('التسلسل الشجري'||' '||:system.trigger_node , no_acknowledge) ; v_htree := Find_Item('tree_bl.htree'); current_node := Ftree.Get_Tree_Selection(v_htree, 1); pp := ftree.GET_TREE_NODE_PROPERTY(v_htree,current_node,Ftree.NODE_VALUE); select count(num) into num1 from v_bal_tree where num = pp ; if num1 > 0 then select de_cr , num , nam , vd , vc into :de_cr , :num , :nam , :vd , :vc from v_bal_tree where num = pp ; else :de_cr := 0 ; :num := 0 ; :nam := 0 ; :vd := 0 ; :vc := 0 ; end if ; end ; جزاك الله كل خير تقديم بلاغ
بتاريخ: 5 يونيو 201114 سنة كاتب الموضوع comment_212874 جزاك الله كل خير ولكن هذا في الاوراكل فورمز نحن نتكلم عن الاوراكل ADF تقديم بلاغ
بتاريخ: 5 يونيو 201114 سنة comment_212881 قم بربط الخاصية selectionListener للـ tree بدالة مثل التالي مع ملاحظة وجود متغير باسم t1 مربوط بالـ tree من خلال الخاصية binding public void nodeSelectionListener(SelectionEvent selectionEvent) { RichTree tree = this.getT1(); TreeModel treeModel = (TreeModel) tree.getValue(); JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) treeModel.getWrappedData(); RowKeySet rks = tree.getSelectedRowKeys(); if (!rks.isEmpty()) { List firstSet = (List) rks.iterator().next(); JUCtrlHierNodeBinding node = treeBinding.findNodeByKeyPath(firstSet); Row row = node.getRow(); //now do whatever you want with the currently selected row } } كما أنه يمكن الحصول على الـ tree من خلال selectionEvent عن طريق selectionEvent.getSource() تقديم بلاغ
بتاريخ: 22 أكتوبر 201312 سنة comment_241465 م مصطفي السلام عليكم تم تنفيذ الكود ولكن يعطي الخطا التالي: Error(38,69): cannot find method getWrappedData() تقديم بلاغ
بتاريخ: 23 أكتوبر 201312 سنة comment_241530 JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) treeModel.getWrappedData(); يعطي خطا هنا لم اجد المكتبه الخاصه به هل من حل تقديم بلاغ
بتاريخ: 24 أكتوبر 201312 سنة comment_241558 import org.apache.myfaces.trinidad.model.TreeModel; تقديم بلاغ
بتاريخ: 29 أكتوبر 201312 سنة comment_241698 م مصطفي شكرا علي ردك لقد تم كتابه الكود اعلاه ولكن لم يتغير شي لم تظهر البيانات في الفورم المجاوره package bean; import java.util.List; import oracle.adf.view.rich.component.rich.data.RichTree; import oracle.jbo.Row;import oracle.jbo.uicli.binding.JUCtrlHierBinding; import oracle.jbo.uicli.binding.JUCtrlHierNodeBinding; import org.apache.myfaces.trinidad.event.SelectionEvent;import org.apache.myfaces.trinidad.model.RowKeySet;import org.apache.myfaces.trinidad.model.TreeModel; public class SelectionNode { private RichTree t1; public SelectionNode() { } public void onSelectionNode(SelectionEvent selectionEvent) { RichTree tree=this.getT1(); TreeModel treeModel =(TreeModel) tree.getValue(); JUCtrlHierBinding treeBinding =(JUCtrlHierBinding) treeModel.getWrappedData(); RowKeySet rks=tree.getSelectedRowKeys(); if (!rks.isEmpty()) { List firstSet=(List) rks.iterator().next(); JUCtrlHierNodeBinding node=treeBinding.findNodeByKeyPath(firstSet); Row row=node.getRow(); } } public void setT1(RichTree t1) { this.t1 = t1; } public RichTree getT1() { return t1; }} تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.