بتاريخ: 18 أبريل 201016 سنة comment_189818 اخواني الاعزاء استخدم tool bar الخاص بالاوركل واريد عند حذف سجل من خلال الظغط علي مفتاح الحذف في tool bar تظهر رسالة تاكيد هل تريد الحذف هذا السجل اذا ظغط اوك يتم الحذف فما هو الكود الخاص بذلك وما اسم التريجر تقديم بلاغ
بتاريخ: 18 أبريل 201016 سنة comment_189825 السلام عليكم و رحمة الله و بركاته الحدث Trigger الذي يكتب فيه الكود التالي هو key_delrec DECLARE alert_id ALERT; num Number; BEGIN alert_id := FIND_ALERT('delete'); Set_Alert_Property(alert_id,title,'Confirmation'); Set_Alert_Property(alert_id, alert_message_text, 'Do you want to delete this record?' ); num := SHOW_ALERT( alert_id ); if num = ALERT_BUTTON1 then delete_record; commit_form; end if; clear_message; if error_type='FRM' and error_code=40510 then alert_id := FIND_ALERT('del_alert'); Set_Alert_Property(alert_id, alert_message_text, 'Cannot delete compartment, it is referred by another record.' ); num := SHOW_ALERT( alert_id ); raise form_trigger_failure; end if; clear_message; End; تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.