Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Need HELP : Form 4.5 Alert and Trigger Problems for aircraft
Hi there....the Oracle experts
I am new using Oracle only a few weeks, but with some Informix background with both 4gl and Isql. Please help me how to fix this alert and trigger problems.
Both my screen forms using Oracle Dev. 2000 form 4.5 on Oracle 7.3.3 works well for todays flight without registration number and the other one is for the similar aircraft in the past but still here in the airport.
FYO, our new international airport always been visited by the 'allien' aircrafts that no registration, so we have to take actions for the services, charges, rents etc.
my problem is how to make the allert button works. Now when I pressed the button, only the message from the alert properties come out but for the trigger from PL/SQL don't, anybody knows how to fix ?
my main logic/psudeocode is as follows :-
select count(*) the aircraft without registration
number for today;
if the count > 1 (at least one aircraft exist) then
display meassage ('the will be x numbers of aircraft without registration number today'); and display flight_no, atmsetad, A/D, D/I, time in hr, mi, etc; else display message ('there is NO flight without registration number today');
both the sql's for the count(*) and detail flight works fine when I tested in the sqlplus but not in the PL/SQL editor & trigger in the form45. Any one have better idea how to link the above sqls into my alert button ? Thanks in advance.
Dan.
the result :
8
2) select flight_no, to_char(atmsetad,'dd-MON-yyyy hh24:mi:ss')
atmsetad_disp, to_char(sysdate,'dd-MON-yyyy hh24:mi:ss') sysdate_disp, (to_number(to_char(atmsetad,'hh24mi'))- to_number(to_char(sysdate,'hh24mi'))) min_diff, trunc((to_number(to_char(atmsetad,'hh24mi'))-to_numberfrom flight
(to_char(sysdate,'hh24mi')))/60) hour_diff, mod((to_number
(to_char(atmsetad,'hh24mi'))-to_number (to_char(sysdate,
'hh24mi'))),60) min_mod, leg, category_code,aircraft_reg_no
(sysdate,'hh24mi'))) between 1 and 600 and atmsatad is null and (aircraft_reg_no is nullor aircraft_reg_no = 'NOREGN')
the results :
DIFF DIFF MODREG_NO
![]() |
![]() |