الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

قسمة العنصر في ال Tree

Featured Replies

بتاريخ:

السلام عليكم

كيف من الممكن الحصول على القيمة التي تم اخايارها في الـ Tree

بتاريخ:

السلام عليكم ورحمة الله وبركاته

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 ;



جزاك الله كل خير

بتاريخ:
  • كاتب الموضوع

جزاك الله كل خير ولكن هذا في الاوراكل فورمز نحن نتكلم عن الاوراكل ADF

بتاريخ:

قم بربط الخاصية 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()

  • بعد 2 سنة...
بتاريخ:

م مصطفي

السلام عليكم

تم تنفيذ الكود ولكن يعطي الخطا التالي:

  • Error(38,69): cannot find method getWrappedData()
بتاريخ:

تأكد من الـ import

بتاريخ:

ماهي اسم المكتبه المطلوب عمل import لها

بتاريخ:

 JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) treeModel.getWrappedData();

 

يعطي خطا هنا لم اجد المكتبه الخاصه به

هل من حل

بتاريخ:

import org.apache.myfaces.trinidad.model.TreeModel;

بتاريخ:

م مصطفي

شكرا علي ردك لقد تم كتابه الكود اعلاه ولكن لم يتغير شي

لم تظهر البيانات في الفورم المجاوره

 

 

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;
  }
}

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.