Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

'WHEN-VALIDATE-RECORD in custom.pll

user10755387Aug 11 2009 — edited Aug 11 2009
i have to throw a message box in a Fom ,whenever a "serial num" is enetered it should check with the database where the serial no has not been repaired or received more than thrice.
so when i'm trying to do the same with custom .pll my code is .i'm getting errors .where should i modify the code .please help .

if (event_name = 'WHEN-VALIDATE-RECORD') then
if (form_name = 'CSDREPLN') then
if (block_name = 'REPAIRS') then
iSELECT COUNT(*)FROM CSD_REPAIRS CR, CS_INCIDENTS_ALL_B CS, CSD_PRODUCT_TRANSACTIONS CP
WHERE CR.REPAIR_LINE_ID = CP.REPAIR_LINE_ID
AND CR.INCIDENT_ID = CS.INCIDENT_ID
AND CS.ACCOUNT_ID := SR.ACCOUNT_NUMBER
AND CP.prod_txn_status = 'RECEIVED'
AND CR.STATUS = 'C'
AND CP.SOURCE_SERIAL_NUMBER := REPAIRS.SERIAL_NUMBER group by CP.SOURCE_SERIAL_NUMBER having count(*) >2;
fnd_message.set_string ('SERial Num has been repaired more than 3 times ');
fnd_message.show ();
RAISE form_trigger_failure;
end if;
end if;
end if;
end if;

end custom;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2009
Added on Aug 11 2009
6 comments
3,165 views