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

سؤال فى When-validate-item Trigger

Featured Replies

بتاريخ:

السلام عليكم


How can i test with the help of the function NVL in when-validate-item
that the field must be unique

ربنا يكرمكم

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

I have a when-validate-item firing on an item that the user has not to enter a value for. The item must be unique. How can i test it?
so the item may be null but must be unique, any idea

Thanks for your Help!!![/size]

بتاريخ:

set a unique constraint on the column in the database
or
set the property of the item in the form to "uniuqe" to be "YES".

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

Jazaki allahou kayran.
I want to make this property in runtime so not in design and not with a constraint.

بتاريخ:

Sorry I was confused there's no such property in the form
but you have to do it programatically
try this one
--------------------
declare
v_cnt number;
begin
begin
select count(*)
into v_cnt
from SALGRADE
where grade = :grade;
exception
when others then null;
end;
if v_cnt > 0 then
raise form_trigger_failure;
end if;
end;
-------------------
but for this solution you will need to save each record

بتاريخ:

replace the "salgrad" table with you table and "grade" with your column

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

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

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

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

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

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.