form error [message #341732] |
Wed, 20 August 2008 02:20 |
torenhof
Messages: 11 Registered: August 2008
|
Junior Member |
|
|
Hello,
I have made a form with 4 datablocks
company, project, contract and student
when i press on ctrl f11 and then want to switch to the next record in my db he always asks if i want to save de changes even if i have changed nothing. Is there e way to suppress this error or warning on my form?
Im using oracle 10g devsuite and db
Gerrit
|
|
|
|
Re: form error [message #342622 is a reply to message #341955] |
Sat, 23 August 2008 05:43 |
torenhof
Messages: 11 Registered: August 2008
|
Junior Member |
|
|
djmartin wrote on Wed, 20 August 2008 21:18 | If Oracle Forms asks if you 'want to save changes' then you HAVE changed something. You may not want to have done so but you have! Look in your code and fix the problem, DON'T just mask it.
David
|
This is the code i have changed
DECLARE
cursor c_stud
is
select Student.SCode,Student.SNAME,STUDENT.SFIRSTNAME,Student.SSTR,Student.area
from Student
Where student.Scode in
(Select Contract.scode from Contract where contract.ProjCode =:Project.projCode)
order by Student.scode;
r_stud c_stud%rowtype;
type type_coll_stud is table of c_stud%rowtype index by pls_integer;
t_stud type_coll_stud;
Begin
go_block('Student');
open c_stud;
loop
fetch c_stud into r_stud;
exit when c_stud%notfound;
t_stud (c_stud%rowcount) :=r_stud;
end loop;
close c_stud;
for i_index in t_stud.first .. t_stud.last
loop
:Student.scode := t_stud(i_index).scode;
:Student.SNAME := t_stud(i_index).sname;
:STUDENT.SFIRSTNAME := t_stud(i_index).sfirstname;
:Student.SSTR := t_stud(i_index).sstr;
:Student.area := t_stud(i_index).area;
next_record;
end loop;
END; [EDITED by DJM: added [code] tags]
[Updated on: Thu, 28 August 2008 01:05] by Moderator Report message to a moderator
|
|
|
Re: form error [message #342763 is a reply to message #341732] |
Sun, 24 August 2008 23:40 |
alammas
Messages: 46 Registered: July 2008
|
Member |
|
|
Hi,
I am also facing same problem,
With shifting trigger button from master block to detail block where next record perform it works properly without fixing any code.
What was happen i don't know?
thanks
|
|
|
|