Link to home
Start Free TrialLog in
Avatar of bek
bekFlag for United States of America

asked on

Oracle Forms: Calling a MENU?

I've created a menu, but am not sure how to call it from a form.  I assume it's got something to do with the form's Menu Module property, but when I enter my menu name there and run the form, I get an error saying something to the effect of "No such menu".  Can someone tell me how to correctly call my menu?

Thanks,
Brian
Avatar of AllaI
AllaI

First, you need to compile your menu to create .mmx file. Then check Menu Source property of the module. By default, it's Yes (or File) which means than the Menu Module property specifies the name of the .mmx runfile that Form Builder should use with this form. Then, you're right, you change the form's Menu Module property to the name of your .mmx file, but if you stored the menu module somewhere other than Form Builder's defualt path, you need to enter the entire file path, along with the filename.
Give the full path name after compiling the menu module.
eg: C:\Forms\mymenu.mmx
HI
first compile  all form and menu
then from your form where u need to call a form have a menu
f45run module=myform userid=scott/tiger ; or
f50run module=myform userid=scott/tiger ; or
depend on your forms version
but if u call that form using call_form('form') the menu not appear
-----rmz---
Avatar of jtrifts
One thing that may be hindering you is if you have the menu file saved as a name different from what the menu name appears as in the object navigator.

The same goes for forms with the same symptom.

Oracle often calls the name of the module, not the name of the file.

Otherwise, it could be a problem in terms of where it is sitting in your folder/file structure on yuor system.

Oracle will look for menus in the same path as the forms path (e.g. FORMS60_PATH) in the registry under HKEY_LOCAL_MACHINE-->SOFTWARE-->ORACLE.

Make sure that the menu is sitting in the folder specified in the registry key or add a string value to that key pointing to its currentl location.

(I try to stay away from hard-coding c:\...\...\menu.mmx as it will increase your maintenance everytime you try to implement elsewhere...)

Regards,

JT
Avatar of bek

ASKER

Sorry about the delay in responding--I work in a Government building, and we had a bomb threat yesterday, so we were evacuated!

I'm having trouble compiling the menu.  When I select the menu and then go to Program->Compile, it doesn't matter if I Compile All, Incrementally, or Compile Selection---nothing happens!  My .mmx file is not created.

Am I doing something wrong to compile a menu?  This is my first one.

Thanks,
Brian
Generating the executable is not the same as compiling. They are two distinct events.

To generate the executable either use the short cut:
<Ctrl> + T
or navigate to File--> Administration-->Generate

You should be logged on when generating.

JT
ASKER CERTIFIED SOLUTION
Avatar of jtrifts
jtrifts
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
HI
i think in one item of menu don't have a code if pls write null in code
----rmz---
Avatar of bek

ASKER

That did it.  Thanks to everyone for the help!

-Brian