Home » Developer & Programmer » Forms » how to get Menu Item Name ? (Forms 6i, Windows Xp, Oracle 9i db)
icon8.gif  how to get Menu Item Name ? [message #401519] Tue, 05 May 2009 06:11 Go to next message
pinkalsolanki
Messages: 25
Registered: December 2008
Location: Surat/Gujarat
Junior Member

HI..

I have created a Menu in forms 6i,

I want to get Menu Item Name When i pressed any menu item in runtime..

e.g, i have a menu items like,
MENU1
ITEM1
ITEM2
ITEM3

when i pressed ITEM1 then it should display ' MENU1.ITEM1 ',

how can i get this..?

REMEMBER !! I WANT TO GET MENU ITEM NAME IN RUNTIME , WHICH IS CREATED IN DESIGN TIME.


THANX.
Pinkal
Re: how to get Menu Item Name ? [message #401929 is a reply to message #401519] Thu, 07 May 2009 01:29 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you experimented with 'get_menu_item_property'?

David
Re: how to get Menu Item Name ? [message #401984 is a reply to message #401929] Thu, 07 May 2009 03:48 Go to previous messageGo to next message
pinkalsolanki
Messages: 25
Registered: December 2008
Location: Surat/Gujarat
Junior Member

I have experminted all of those !!!

You can get only property of the MENUITEM by GET_MENU_ITEM_PROPERTY built-in, and for that you have to pass the menuitem name or id.

BUT !! i want to get that menuitem name or id when
user pressed any menu.


- Pinkal

Re: how to get Menu Item Name ? [message #402152 is a reply to message #401984] Thu, 07 May 2009 21:06 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Does system.current_item while working in the menu provide information?

David
Re: how to get Menu Item Name ? [message #442234 is a reply to message #402152] Fri, 05 February 2010 12:57 Go to previous messageGo to next message
rkgoyal98
Messages: 39
Registered: October 2009
Member

I tried that, error is invalid id
Re: how to get Menu Item Name ? [message #442245 is a reply to message #442234] Fri, 05 February 2010 22:23 Go to previous messageGo to next message
tamzidulamin
Messages: 132
Registered: October 2009
Location: Dhaka
Senior Member
Hi Dear,

U can try with
           PREVIOUS_MENU_ITEM; 
           NEXT_MENU_ITEM;
           

dynamically, after that u use Find_Menu_Item.
FIND_MENU_ITEM  (menu_name.menu_item_name);

For Ex: FIND_MENU_ITEM ('MY_MENU.COPY_MENU');


Tamzidul Amin.
Re: how to get Menu Item Name ? [message #443067 is a reply to message #442245] Fri, 12 February 2010 07:07 Go to previous messageGo to next message
pinkalsolanki
Messages: 25
Registered: December 2008
Location: Surat/Gujarat
Junior Member

Thanks for Reply.

u said

USE

FIND_MENU_ITEM('MY_MENU.COPY_MENU');


but thats what i want to get is 'MY_MENU.COPY_MENU'

i want to get it dynamically..
when user press specific menu then i want to get the menu name used in menu builder like 'MY_MENU.COPY_MENU'


WITH THE USE OF

PREVIOUS_MENU_ITEM;
NEXT_MENU_ITEM;

U can just navigate the item not the inherit the properties of it.




Re: how to get Menu Item Name ? [message #443141 is a reply to message #443067] Sat, 13 February 2010 00:11 Go to previous messageGo to next message
tamzidulamin
Messages: 132
Registered: October 2009
Location: Dhaka
Senior Member
Dear,

You can programatically use of following code:

FIND_MENU_ITEM (PREVIOUS_MENU_ITEM);

Or
FIND_MENU_ITEM (NEXT_MENU_ITEM);


Regrads

Tamzidul Amin.
Re: how to get Menu Item Name ? [message #443183 is a reply to message #443141] Sat, 13 February 2010 07:25 Go to previous messageGo to next message
pinkalsolanki
Messages: 25
Registered: December 2008
Location: Surat/Gujarat
Junior Member

i have tried it.

see my code.

--------------------------------

DECLARE
MY_MENU MENUITEM;
MENU_LABEL VARCHAR2(20);
BEGIN

MY_MENU := FIND_MENU_ITEM(NEXT_MENU_ITEM);

MENU_LABEL := GET_MENU_ITEM_PROPERTY(MY_MENU,LABEL);

MESSAGE(MENU_LABEL);

END;
----------------------------------


when i compile this code, it throws the errors and says..

" no function with name 'NEXT_MENU_ITEM' exists in this scope "

i had put this code into BUTTON "WHEN-BUTTON-PRESSED" TRIGGER in forms and also tried in MENU ITEM'S PL/SQL EDITOR..


Re: how to get Menu Item Name ? [message #446924 is a reply to message #443183] Thu, 11 March 2010 00:18 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Sorry that I have been so long in replying. Have you solved your problem?

Where did you find 'NEXT_MENU_ITEM'? It doesn't exist in any documentation that I have available to me. You need to know the name of the item before doing the 'find' and 'get - checked'.

David
Re: how to get Menu Item Name ? [message #576956 is a reply to message #401519] Mon, 11 February 2013 06:16 Go to previous message
asghar_expo
Messages: 1
Registered: January 2013
Location: pakistan
Junior Member
Mr.David!
How can i get menu item name and menu name dynamically. I use forms 6i
please help
thanks in advance
Previous Topic: After post trigger go to the specific item.
Next Topic: FRM-18126 and WINDOWS7
Goto Forum:
  


Current Time: Fri Dec 02 16:33:22 CST 2016

Total time taken to generate the page: 0.27101 seconds