بتاريخ: 9 مارس 200818 سنة comment_124205 السلام عليكم How can i test with the help of the function NVL in when-validate-itemthat the field must be uniqueربنا يكرمكم تقديم بلاغ
بتاريخ: 9 مارس 200818 سنة كاتب الموضوع comment_124226 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 ideaThanks for your Help!!![/size] تقديم بلاغ
بتاريخ: 10 مارس 200818 سنة comment_124254 set a unique constraint on the column in the databaseorset the property of the item in the form to "uniuqe" to be "YES". تقديم بلاغ
بتاريخ: 10 مارس 200818 سنة كاتب الموضوع comment_124259 Jazaki allahou kayran.I want to make this property in runtime so not in design and not with a constraint. تقديم بلاغ
بتاريخ: 10 مارس 200818 سنة comment_124269 Sorry I was confused there's no such property in the formbut you have to do it programaticallytry this one--------------------declare v_cnt number;beginbegin 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 تقديم بلاغ
بتاريخ: 10 مارس 200818 سنة comment_124270 replace the "salgrad" table with you table and "grade" with your column تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.