FRM-41009 when clicking Save in 6i [message #329799] |
Thu, 26 June 2008 10:24 |
hhelgen
Messages: 12 Registered: April 2007 Location: Duluth MN
|
Junior Member |
|
|
Greetings,
I receive FRM-41009 Function key not allowed. Press Ctrl-F1 when I click File > Save or the Save button on a custom menu. I cannot save the records that way. The only way to save is to click Exit. It then prompts to save, notifies me that the records are saved, and exits. I would like to know how to get the menu's save button to work.
I realize from reading that it has something to do with the mode, but I cannot find where the mode is set or how to fix it.
I wrote a "break;" statement in the File > Save menu item code, but it never reaches that code when I run it using the ifdbg60. I also ran the form using debug_messages=YES. I can see that it runs through several pre_text_item, post_text_item, and validate_item triggers after I enter data. Then it shows the form again. I click save and it immediately gives the FRM-41009 error. It does not run the validate_record trigger. I think it does not go through the post / commit flow.
Henry
|
|
|
|
Re: FRM-41009 when clicking Save in 6i [message #330060 is a reply to message #329914] |
Fri, 27 June 2008 08:39 |
hhelgen
Messages: 12 Registered: April 2007 Location: Duluth MN
|
Junior Member |
|
|
I do not have a key-commit trigger anywhere in the form. I did a Find and Replace in Program Units search and did not find that.
There is commit code in the Save trigger, but it does not get there. do_key('forms_ddl(''COMMIT'')');
|
|
|
Re: FRM-41009 when clicking Save in 6i [message #333851 is a reply to message #329914] |
Mon, 14 July 2008 10:42 |
hhelgen
Messages: 12 Registered: April 2007 Location: Duluth MN
|
Junior Member |
|
|
The save feature works when I click File > Exit or Query > Cancel. The trigger code is
It also works when I press F10, which I understand does a key_commit. But there is no key_commit trigger.
It just does not work when I click File > Save. I put a break; in the trigger for the menu item File > Save. It is like it never gets to that menu item or menu button.
Henry
|
|
|
Re: FRM-41009 when clicking Save in 6i SOLVED [message #337402 is a reply to message #330060] |
Wed, 30 July 2008 15:49 |
hhelgen
Messages: 12 Registered: April 2007 Location: Duluth MN
|
Junior Member |
|
|
I figured the problem out. First of all Forms Builder was not compiling menus when I clicked compile. I had to use Forms Compiler to compile the menu. I just replaced the commit code to use the Commit_form instead of the forms_ddl code as follows
do_key('Commit_form');
--do_key('forms_ddl(''COMMIT'')');
|
|
|