Home » Developer & Programmer » Forms » FRM-41009 when clicking Save in 6i (Forms 6i client/server database 9.2.0.8 Windows 2003 server Windows XP client)
FRM-41009 when clicking Save in 6i [message #329799] Thu, 26 June 2008 10:24 Go to next message
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 #329914 is a reply to message #329799] Fri, 27 June 2008 01:13 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Is there a KEY-COMMIT trigger in your form? If so, how does it look like?
Re: FRM-41009 when clicking Save in 6i [message #330060 is a reply to message #329914] Fri, 27 June 2008 08:39 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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
do_key('Exit_form');


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 Go to previous message
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'')');
Previous Topic: Choice of Forms and Reports package--needed help
Next Topic: D2K Report not run
Goto Forum:
  


Current Time: Mon Feb 03 09:46:41 CST 2025