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

Featured Replies

بتاريخ:

Hi again...
well i have a problem ... i need to use update but i dont know how!!!! B)
never used it before :lol:

i have done this
update invoice
set INVOICE_BALANCE=total_amount-:amount_paid
where invoice_no=:receipt_voucher.invoice_no;

IS IT WRONG !!!!
it does not work ????

Can any one HElp :unsure: !!!!!

بتاريخ:

Syntax as follows:

UPDATE {table} SET {column_1}={value_1}, {column_2}={value_2}, ... [WHERE .....];

Without the WHERE, all rows will be changed.

example:

UPDATE STUDENT SET GPA = (GPA+1);

بتاريخ:

استخدم دالة nvl حتى لاتحدث مشكلة فى حالة وجود Null value

update invoice
set INVOICE_BALANCE=nvl(total_amount,0) - nvl(:amount_paid,0) 
where invoice_no=:receipt_voucher.invoice_no;



ثم اضف commit اذا تطلب الامر ذلك

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

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

طيب.. أنا أبي انه يعدل على الفاتوره هل احط التريقر هذا في سند القبض داخل زر.. ويرجع على الفاتوره
او انه الطريقه غلط... أرجو الرد

بتاريخ:

in trigger post_update
على اد فهمي من كلامك

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

okay... i`ll put it in trigger post_update
but should i put it in RECEIPT_VOUCHER form OR in INVOICE form
the update well be on the INVOICE and the changes well be made in the RECEIPT_VOUCHER
and then i`ll press butten and the update well be made.. !!!!

SORRY BUT I NEED HELP :unsure:

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

i put this code in a butten:
update invoice
set INVOICE_BALANCE=nvl(total_amount,0) - nvl(:amount_paid,0)
where invoice_no=:receipt_voucher.invoice_no;

And i did put this code also in POST_update:
IF :System.Record_Status ='CHANGED' THEN
Commit_Form;
message('Update Is Done');
END IF;

i writed thim in RECEIPT_VOUCHER form



!! HELP ..HELP .. HELP .. HELP .. HELP !! :unsure:

بتاريخ:

الاخ الكريمة
استخدمي تريجر post-change
على مستوى التكست الذي تريدين التعديل عليه فهي افضل طريقة وتستطيعي كذلك ان تعملي حفظ لهذه البيانات
لذلك اتبعي التالي
in trigger post-change

update invoice
set INVOICE_BALANCE=nvl(total_amount,0) - nvl(:amount_paid,0) 
where invoice_no=:receipt_voucher.invoice_no;
Commit_Form; 



طبعا لايتم عمل commit اذا كان لايوجد تحديث على مستوى الفورم وليس على مستوى قاعدة اتلبيانات هناك فرق كبير

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

شكرا يا أخ Admen05 ... ولكن ما الفرق ؟؟!! ممكن توضح لي !!! :)

بتاريخ:

الفرق بسيط وهو عندما يقوم بالتعديل يعني عند التعديل على هذا الحقل يقوم بالعملية التي تقولين عنها
وليس التعديل على مستوى مجموعة حقول ولكن يأخذها حقل حقل

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

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

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

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

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

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.