Home » Developer & Programmer » Forms » Cannot read menu file
Cannot read menu file [message #290922] Wed, 02 January 2008 03:30 Go to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Guys,

I am having this problem about not being able to read the menu file.

I made a menu object and attached it to the form module but now when I try to run the form it gives me this error that it cannot read the menu module though the form is running properly.

I have also attached a screen shot.

- Das
  • Attachment: error.bmp
    (Size: 272.00KB, Downloaded 806 times)
Re: Cannot Read Menu File [message #290933 is a reply to message #290922] Wed, 02 January 2008 04:03 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
hi,

is the fmx file and the mmx file present in the same directory ?
Are you running the form in your local machine or on an application server ?

Minto
Re: Cannot Read Menu File [message #290935 is a reply to message #290922] Wed, 02 January 2008 04:08 Go to previous messageGo to next message
vamsi kasina
Messages: 2112
Registered: October 2003
Location: Cincinnati, OH
Senior Member
How did you attach it?
Do you grant read permissions on the file?

By
Vamsi
Re: Cannot Read Menu File [message #291418 is a reply to message #290933] Fri, 04 January 2008 02:43 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
I have installed the database (9i) and the developer suite (10g) on the same machine.

I tried a couple of times but when I create a new form and a menu and attach it with the form then it throws an error that not able to read the menu item.

Any idea why this may occur

- Das
Re: Cannot Read Menu File [message #291419 is a reply to message #290935] Fri, 04 January 2008 02:45 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
I changed the default menu in the form to the menu I just created..

Did not know anything about giving read permissions?

Can you tell me how exactly to do it?

- Das
Re: Cannot Read Menu File [message #291423 is a reply to message #291419] Fri, 04 January 2008 02:58 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
is the fmx file and the mmx file present in the same directory ?

Minto
Re: Cannot read menu file [message #291560 is a reply to message #290922] Fri, 04 January 2008 21:07 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Yes they are in the same directory.

Can you tell what next, as I am still getting the same error

- Das
Re: Cannot read menu file [message #292396 is a reply to message #291560] Tue, 08 January 2008 21:22 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Is this the first form you have biult and run on your PC?

Have you defined the 'forms_path' entry in the registry?

David
Re: Cannot read menu file [message #292563 is a reply to message #292396] Wed, 09 January 2008 03:56 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Thanks for the reply David

I have not defined the forms path. This is the first time I am playing with forms so I may not know that.

I have installed 10g developer suit and 9i database on my computer. When I run simple forms (forms which just display data) then it is running perfectly.

When I create menu and attach them with the forms I get an error message at run time that it is not able to read the menu but still the from displays properly with the columns

Can you assist me on this?

- Das
Re: Cannot read menu file [message #292780 is a reply to message #292563] Wed, 09 January 2008 19:47 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
What is the name of your form and your menu? In which directory do you have the form and in which directory do you have the menu? Can you get the 'test' form to run from within the Oracle Forms Builder?

David
Re: Cannot read menu file [message #292819 is a reply to message #292780] Wed, 09 January 2008 23:52 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Thanks for the reply.

My form and the menu are both saved on the desktop. Name of the form is Form1 and Menu is Menu1. 'Test form', I don't know what you mean by that but yes I am able to run forms for which Menus are not attached.


I am first creating a simple menu (File-Save) and then changing Menu Module (in the property palette of the form) to Menu1. Compiling it and running it(CTLR + R).

Please let me know if you need any more details

- Das
Re: Cannot read menu file [message #292833 is a reply to message #292819] Thu, 10 January 2008 00:25 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
hi,

when you place the form on your desktop, there might be some space in the path of the file.
For eg: C:\Documents and Settings\username\Desktop\form.fmx

I think this might be causing the issue.

Could you just copy the form and menu to some other folder and check whether its working.

Minto
Re: Cannot read menu file [message #292842 is a reply to message #292833] Thu, 10 January 2008 00:40 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Currently the forms supplied as part of the installation are in 'C:\DevSuiteHome_1\forms'. Move you fmb, fmx, mnb(u?), and mnx to that directory, recompile your menu and form and see what happens.

David
Re: Cannot read menu file [message #292880 is a reply to message #292833] Thu, 10 January 2008 02:03 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Thanks for the reply Minto

I tried doing that I created a new Menu and form in another folder in the D drive but still it is giving the error ' FRM - 10221 Cannot read 'form_name'

Did I forget about configuring a path for the app server to read the menu?

Please assist me if you can

- DAS
Re: Cannot read menu file [message #292891 is a reply to message #292842] Thu, 10 January 2008 02:19 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Hi David,

My developer home is in E drive so I created a new form and a new Menu and saved it in the developer home in the forms90 folder (where I saw the 'test' form you had mentioned) unfortunately when I reopened the form from that location and ran it (CTLR +R ) it still gave me that error.

If this is not becoming too much for you then can you help me if you know the answer

- Das
Re: Cannot read menu file [message #292898 is a reply to message #292880] Thu, 10 January 2008 02:33 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
you have set the workingdirectory parameter in the formsweb.cfg file. right ?

Minto
Re: Cannot read menu file [message #292903 is a reply to message #292891] Thu, 10 January 2008 02:37 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
did u build the fmx file (using CTRL+T) before running the form?

Minto
Re: Cannot read menu file [message #292912 is a reply to message #292898] Thu, 10 January 2008 03:00 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
no I haven't...can you tell me how to and what is the significance of this?

- Das
Re: Cannot read menu file [message #292938 is a reply to message #292912] Thu, 10 January 2008 03:53 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
if you are using an application server instead of running the form on you local machine, you have to set this parameter in the named configuration in the file formsweb.cfg

Minto
Re: Cannot read menu file [message #292977 is a reply to message #292938] Thu, 10 January 2008 06:22 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member

how to I set this parameter in the formsweb.cfg.

workingdirectory parameter

I am running the forms on the local machine.

- Das
Re: Cannot read menu file [message #293100 is a reply to message #292977] Thu, 10 January 2008 22:16 Go to previous message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
Please try the following:

Edit the formsweb.cfg file in [oracle_home]\forms\server and create a configuration as shown below:

[MyConfig]
envFile=default.env
imageBase=codebase
width=1024
height=750
separateFrame=true
splashScreen=false
background=no
lookAndFeel=Generic
colorScheme=blaf
logo=false
recordFileName=
archive_jini=frmall_jinit.jar
pageTitle=MY_APPLICATION
workingdirectory=C:\MyForms
form=MAIN_FORM.fmx
userid=username/password@database

Now copy the form and menu to the folder C:\MyForms

set the form name and db connection in the configuration.

Now, you can access your application from a link like:
http://your_machine:8889/forms/frmservlet?config=MyConfig

You can find your port number (8889) from the parameter Oracle Developer Suite HTTP port in the file [oraclehome]\install\portlist.ini


Minto
Previous Topic: Scanning directly from oracle forms
Next Topic: Cannot Read Form File Error
Goto Forum:
  


Current Time: Thu Feb 13 07:10:10 CST 2025