Home » Developer & Programmer » Forms » Problem opening form module from another form module (Forms 10g)
Problem opening form module from another form module [message #358992] Thu, 13 November 2008 03:27 Go to next message
svsig
Messages: 7
Registered: November 2008
Location: Norway
Junior Member
We are in the process of converting our Forms 6i modules to Forms 10g. We are still very early in the process, and I am now trying to test some of the converted forms on my workstation. When I run a start form from Forms Builder it works fine, but when I try to open another form from my start form I get the error message FRM-40010: Cannot read form. I am using the command OPEN_FORM for this operation.

I am trying to follow the description in the course manual for the Move to the web course. Under the title Defining Forms Environment Variables for Run Time the manual says:

Forms searches the following paths in order until the required file is found:
- The current working directory
- Directories in FORMS_PATH
- Directories in ORACLE_PATH

The form I am trying to open is located in the same directory as the start form. I regard this as the working directory, so I don't understand why I can't find the form at runtime. I have also tried to include this directory in the FORMS_PATH entry in the default.env file in addition to the registry entry. And I have tried upper and lower case. I have also tried to attach the extension .fmx, but then the whole stops responding, I don't even get an error message, and I have to stop it manually.

Is there something else I am missing here?

Regards,
Sveinung
Re: Problem opening form module from another form module [message #358998 is a reply to message #358992] Thu, 13 November 2008 04:39 Go to previous messageGo to next message
Littlefoot
Messages: 20901
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I'd say that all you have done was done correctly.

However, did you try to recompile ALL (Ctrl + Shift + K) (both forms) and then try again?
Re: Problem opening form module from another form module [message #359012 is a reply to message #358998] Thu, 13 November 2008 05:40 Go to previous messageGo to next message
svsig
Messages: 7
Registered: November 2008
Location: Norway
Junior Member
Aaaaaarrrgghh! I have made a typing error in the default.env file Embarassed. Now it works.

I still don't understand why Forms can't find the module in the working directory, though. I had hoped to solve the problem that way. We have quite a few Forms projects, and I had hoped to avoid including the directory for every project in the FORMS_PATH entry in the default.env file. Is it possible, or is this the best way to do it?

Regards,
Sveinung

Re: Problem opening form module from another form module [message #359139 is a reply to message #359012] Thu, 13 November 2008 19:09 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
How did you start the first form?

What is the name of the directory?

Please remove the path from the 'default.env'.

What do your calls to the new form look like? Please post the code.

David
Re: Problem opening form module from another form module [message #359168 is a reply to message #359139] Fri, 14 November 2008 00:18 Go to previous messageGo to next message
Littlefoot
Messages: 20901
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
David,

he had solved the problem - it was a typo in directory name.

Just to verify: one should not modify the DEFAULT.ENV file; directories which contain forms should be part of the FORMS_PATH variable.
Re: Problem opening form module from another form module [message #359480 is a reply to message #359168] Sun, 16 November 2008 20:52 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
And they should be in the 'Start in' for the Forms Builder.

David
Previous Topic: HOW CALL BATCH FILE FROM FORMS 10G
Next Topic: ODBC connection in Forms 4.5
Goto Forum:
  


Current Time: Sun Dec 11 06:23:55 CST 2016

Total time taken to generate the page: 0.09595 seconds