|
|
|
|
|
|
|
|
Re: A strange problem.... [message #267588 is a reply to message #266503] |
Thu, 13 September 2007 15:19 |
imtiazmasud
Messages: 49 Registered: May 2005 Location: Bangladesh
|
Member |
|
|
Hi david,
I have separated 'key-commit' and 'pb_save when-button-pressed' and placed the code in a Program Unit and calling the one pice of code from the two triggers.....but still not working...
here you know, that the two different triggers one is "key commit" trigger which will fire only when "F10" key is pressed and another trigger will fire only when "save" button will be pressed.
and you know the the individual form is also running successfully but creating problem when calling it from main menu the giving an extra message "No Changes to save" which is painful,,,
Here is the table script
create table unit_info
(
unit_id varchar2(10) constraint unit_id_pk primary key,
unit_name varchar2(50),
unit_desc varchar2(100)
);
insert into unit_info
values('1','Kg','Kilogram');
insert into unit_info
values('2','Lbs','Pound');
insert into unit_info
values('3','Ft','Feet');
[Updated on: Thu, 13 September 2007 15:22] Report message to a moderator
|
|
|
Re: A strange problem.... [message #267616 is a reply to message #267588] |
Thu, 13 September 2007 20:51 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
I repeat:Quote: | Change your 'save' trigger to do a 'do_key('commit_form')'.
|
Try that and get back to us.
Debugging hint: Add 'message('asdf');pause;' pairs at the beginning AND end of EVERY trigger and piece of code in your form. Run your program and KNOW which triggers are firing and WHEN.
David
|
|
|