Home » Developer & Programmer » Forms » Getting Externally Menu item code
Getting Externally Menu item code [message #292253] Tue, 08 January 2008 05:13 Go to next message
sri_rao85
Messages: 25
Registered: September 2006
Junior Member
Hi all,
I want to select the menu item code in the runtime externally.i am useing forms 6i.

example :

a:=get_item_property(xxxxxxx);

like the above i want to select the menu item code into a variable in runtime mode.

thanks in advance
srini
Re: Getting Externally Menu item code [message #292412 is a reply to message #292253] Tue, 08 January 2008 22:04 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
My first thought was "What menu item code?" but upon rereading I think you mean "What menu button was pushed that contained the code that started this form?". Is this correct? If the latter how about putting something into a 'global' and then testing it in your form?

David
Re: Getting Externally Menu item code [message #292424 is a reply to message #292412] Tue, 08 January 2008 22:41 Go to previous messageGo to next message
sri_rao85
Messages: 25
Registered: September 2006
Junior Member
Hi David..
Thank a lot for u'r effort acctuvally my Requairment is like this..

I had created a menu form(MMB) there for calling hte form directly i had hat coding like this call_form(form_name) but i don't want to do like this i want to select the form by the menuitem code the requaired details i will store in the database suppose i had the menu item id and calling form in the table .If i press the menu then i need to select the menu item code after that by selection query i will take the form name from the database ..

i think now u can have a clear idea

thanks
srinivas
Re: Getting Externally Menu item code [message #292432 is a reply to message #292424] Tue, 08 January 2008 23:04 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Write a PLL procedure that uses 'get_menu_item_property(label)' in a 'select' statement to get the form name and then do the form call. Then call this PLL procedure from each menu item.

David
Previous Topic: Problem With Radio Buttons
Next Topic: Can i Use F9 Key for LOV Populate
Goto Forum:
  


Current Time: Sat Dec 03 13:52:40 CST 2016

Total time taken to generate the page: 0.06979 seconds