الانتقال إلى المحتوى
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.

مساعده : عاوز الصف الجديد يطلع بعد اخر صف محفوظ على الصفحة

Featured Replies

بتاريخ:

شباب سلام عليكم عندى مشكلة صغيره

عندما اقوم بعمل تنفيز للصفحة والمحتوى عباره عن جدول المشكلة عندما اضيف صف جديد بيظهر فوق اخر صف محفوظ بس  انا عاوز الصف الجديد يطلع بعد اخر صف محفوظ على الصفحة

ارجو المساعدة

 

  • بعد 4 أسابيع...
بتاريخ:

وانت  فاتح الـ JDeveloper  روح  على  الـ model.uiview  وافتح  الـ view   اللي  انت  عاوز  ترتب  عناصرها   

هتفتح لك  ملف  xml   اختار  منها  Query   ومنها  اختار  Edit SQL Query   على شكل  قلم  

 

هتفتح لك  نافذة وهتلاقي  تحت  Order By

اكتب  فيها  ID ASC

وبكده  هيترتب  عندك  تصاعدي وبعدها  اعمل  Test 

وان شاء الله  تشتغل  معك  تمام  

 

وبعدها  اعمل  Run   للصفحه  وهتلاقيها  تمام  

وكل  ما  تضيف  ريكورد جديد  هتلاقيه  تحت  مش  فوق

 

 

 

ان  اشتغلت  معاك  قولنا  

بتاريخ:

لا أنصح بذلك لأنه عند وجود بيانات كثيرة فستجد هذه النقطة مشكلة كبيرة خاصة أنك لا تستطيع عمل scroll برمجياً في الجدول

بتاريخ:

اخي tarig mis  قم بعمل override للميثودinsertRow في الكلاس View Impl كالتالي:

public void insertRow(Row row) 
{

Row lastRow = this.last();
if (lastRow != null) 
{

int indx = this.getRangeIndexOf(lastRow) + 1;
this.insertRowAtRangeIndex(indx, row);
this.setCurrentRow(row);
}
 else
{

super.insertRow(row);
}
}

او قم بانشاء الميثود التالية في ال bean وناديها من خلال زر  (والحل دا للFrank Nimphius)

 
public String onRowCreate() 
{
 BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
 //access the name of the iterator the table is bound to. Its "allDepartmentsIterator"
 //in this sample
 DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("allDepartmentsIterator");
 //access the underlying RowSetIterator
 RowSetIterator rsi = dciter.getRowSetIterator();
 //get handle to the last row
 Row lastRow = rsi.last();
 //obtain the index of the last row
 int lastRowIndex = rsi.getRangeIndexOf(lastRow);
 //create a new row
 Row newRow = rsi.createRow();
 --//initialize the row
 newRow.setNewRowState(Row.STATUS_INITIALIZED);
 //add row to last index + 1 so it becomes last in the range set
 rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow); 
 //make row the current row so it is displayed correctly
 rsi.setCurrentRow(newRow);                          
 return null;
} 

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

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

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

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

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

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.