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

Update Value After Commit

Featured Replies

بتاريخ:

لو سمحتم يا شباب لو عندى Adf Form وبعدل فيها والفورم دي فيها flag وعاوز لما اضغط Commit يعدل قيمة الFlag ده  ويخليها بواحد يعنى ببساطة 

After Commit يعمل update table set flag=1 

هل لها طريقة في ال Adf ولو ليها طريقة هتبقى ازاي؟؟

من فضلكم لو حد يعرف يقولى محتاجها ضروري

شكرا

بتاريخ:

 

Dear,

 

many ways, let us suggest 2 ways.

 

1- in DataModel Projcect, handle it in EO impl of your entity object, in dodml method after super and prepare for dml to achieve this

2-in Interface, handle in Back Bean Method to make the required new update based on Page Definition Iterator

 

Enjoy !!

 

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

thanks dear but i'm beginner in adf and i don't know how to write code for this in example in dodml method, can u help me plz to write this code 

thank alot

بتاريخ:

Dear,

 

you have to study EO impl Triggers and Data model very well before going inside for theses technical points ..

 

thanks

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

thanx Eng Adel for reply i studied EO impl triggers and do this code

 

protected void doDML(int operation, TransactionEvent e) {
 
super.doDML(operation, e);
setFlag("1");
if (operation == DML_UPDATE) {
 
try {
getDBTransaction().commit();
}
rollback(); throw ex;
catch (JboException ex) { getDBTransaction()
. } } }
 

 

 
but when rin and pressing commit get this error 

java.lang.StackOverflowError

cannot be cast to java.lang.Exception

 

Could u help me plz.....

تم تعديل بواسطة owen540

بتاريخ:

Dear ,

 

1- preferred to make your code before super.

2- u have to use super.preparefordml before checking operation == dml type.

3- don't use commit, it is wrong action in EO.

 

good luck

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

Thanks Eng Wael I did it successfully

بتاريخ:

السلام عليكم

ممكن تشرح ماذا عملت وامل وضع الكود بعد التعديل

مع التحيه

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

تفضل

protected void prepareForDML(int operation, TransactionEvent e) {
        
        super.doDML(operation, e);
        if (operation == DML_UPDATE) {                        
            
            setCallStat("1");
           
           
        }
    }
بتاريخ:

الف شكر

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

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

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

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

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

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.