General discussion

Locked

Help with Oracle Forms runtime env.

By jacharya ·
I have my .fmb, .fmx and related files stored in a directory and mapped it
to drive K:.

The application runs fine when I use it within the Developer 2000 application. But when I run the f45run32 utility using the command prompt (or from
another application, which is what I really need to do), the following
occurs:
* I type
C>f45run32 userid=....... module=k:\form1.fmx
at the dos prompt.
* The module form1.fmx calls another module, namely form2.fmx using the
"call" command. If I am not at the K: prompt in dos, I will get the
FRM-40010 error.

I think that I need to set my runtime directory = K: drive. Any hints?
FYI, I have set path = %path%;K: using the windows NT environment utility
and so I know that the drive K: is in the search path.

You advice is greatly appreciated.

Thank you,

Jay

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Help with Oracle Forms runtime env.

by staspinar In reply to Help with Oracle Forms ru ...

If the calling form is in the same path with the main form you can use a function like below that accept form name as input and return the path of the given module(*.fmb):

FUNCTION program_path( preport in varchar2) RETURN varchar2 IS
x varchar2(200) := get_form_property(name_in('SYSTEM.CURRENT_FORM'),FILE_NAME);
BEGIN
return substr(x,1,instr(x,'\',-1))||preport;
END;


Example : call_form(program_path(form_name));
Sincerely;

Collapse -

Help with Oracle Forms runtime env.

by jacharya In reply to Help with Oracle Forms ru ...

Poster rated this answer

Collapse -

Help with Oracle Forms runtime env.

by Rob Wolfe In reply to Help with Oracle Forms ru ...

I had the exact same problem. It turned out that the problem was a missing (misaligned) registry entry.
If you look in the registry under "current machine\oracle\home" (one of the homes - oracle has a tendency to create several) you will see an entry for something like "FORMS45_PATH". you should make sure that one of the entries in this path is "K:\".
It is just a regular semi-colon delimited list so it is pretty hard to mess it up. It is also possible (depending on what versions of Developer you have installed) that you might have to modify "FORMS60_PATH".

Alias is real if you want more help.

Collapse -

Help with Oracle Forms runtime env.

by jacharya In reply to Help with Oracle Forms ru ...

Poster rated this answer

Collapse -

Help with Oracle Forms runtime env.

by jacharya In reply to Help with Oracle Forms ru ...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums