Professional Documents
Culture Documents
Commit_form;
Clear_form;
Exit_record;
For scroll bar with the reptdtl open the object navigator click on
the rcptdtl properties click on yes in front of scroll of bar and
choose the canvas2.
First of all we select the display item button and draw in front
dcode. Change its name dname and give it’s data base negative in
the properties of dname. Same process use for sname and
iname.In iname we just change the block name rcptdtl.
For of all we create the trigger on the dcode for show the name in
dname column.
:rcptdtl.amt:=nvl(:rcptdtl.rate,0)*nvl(:rcptdtl.qty,0);
This trigger is use for rate. This trigger multiply the rate with qty
and give the answer in the amount column.
Begin
Select max(rno)into:rcptmst.rno from rcptmst;
Exception when no_data_found then
:rcptmst.rno:=0;
end;
First of all we create list of values. Start the wizard and select the
table dept and select column for get the data from SQL table of
dept, same process for supplier and for item. After create the list
of values run the program and press F9.
ALERT.
First of all we create config in the SQL. In which we create two
column sdate and edate and give limited date for alter. Then we
open the form and check the alert.
This is the alter we create in the object navigator. Now we create
the trigger on date for validation of date.
Declare
Mfdate date;mtdate date;temp number;
Being
Being
Select sdate,edate into mfdate,mtdate from config;
Exception when no_data_found then null;
End;
If :rcptmst.rdate not between mfdate and mtdate then
Temp:=show_alert(‘date”);
Raise from_trigger_failure;
End if;
End;