Own menu item on matrix righ click

Hi
How can i add my own menu item on mouse right click event on a matrix in a form.
I want my menu to appear when i right click on a row in matrix in sales order form. I want to be able to get the row no of the matrix when i choose my menu.
Thanks
Satish Dwevedi (Dev)

What version of SBO are you using? In 2004, there is no right click event, (2005 does have a right_click event) so it can give a little trouble. Mostly a right click triggers a normal click event, but not always.
Adele is right for the menu adding, you can add menuitems directly to the forms own menu.
However, the clicked row is not in the pVal.Row value, because the click on the context menu does fire a menuevent, wich does not have a pVal.Row variable.
You should have a global variable, and when the right clickevent occurs, save the row from pVal.Row. When later the menuclick occurs get the row from your global variable and perform your tasks.
<b>Code (C#):</b>
/* Global variable */
private int myRow;
/* Add the menu */
/* Add a procedure to add your form, see the UI API*/
public override void Handle_ItemEvent(string FormUID, ref ItemEvent pVal, out bool BubblesEvent)
  /* Catch the click */
  if((pVal.EventType == et_Click) && (FormUID == "MY_FORM_UID") && pVal.beforeAction)
    myRow = pVal.Row; 
  BubblesEvent = false;
public override void Handle_MenuEvent(ref MenuEvent pVal, out bool BubblesEvent)
  /* catch the menuclick */
  if((pVal.MenuUID == "My_Context_MenuUID") && pVal.BeforeAction)
    NiceFunctionToHandleMenuClickEvent();
  BubblesEvent = false;
private void NiceFunctionToHandleMenuClickEvent()
  /* Add your procedure wath you want to do with the row */
  /* The row is stored in myRow */
Hope it helps, Rowdy

Similar Messages

  • Spry Menu Bar - Freezing the Menu item in hover when clicking a submenu item

    Hi,
    I am trying to add a feature to a verticle spry menu bar that freezes the menu item or "parent" (to apear to be hovered) when clicking one of the parents sub-menu items. I want to do this so that users can know how they arrived at the page they're on.
    Thanks for your help,
    -Shiva

    To look at your intention in a different way,
    Hover over a submenu item
    Parent item is colored/indicated
    Submenu item is colored/indicated
    Click on the submenu item
    New page opens
    Parent item "remains" colored/indicated on the new page
    There are three or four ways to do this, depending on your site setup, but one basic concept to understand. The emphasis on the Parent menu item is totally independent of whether you got to the new page via the menu or by some other means. The emphasis will always be there, though it will appear to be connected to your clicking on the menu!
    Say you have a menu with two Parent menu items, flowers and trees.
    On the Flowers menu are submenus: Tulips, Roses, and Gardenias, On all three different Flowers pages (Tulips, Roses, Gardenias), the Flowers parent item will be emphasized.
    On the Trees menu are submenus: Oak, Maple, Spruce. On all three different Trees pages (Oak, Maple, Spruce), the Trees parent item will be emphasized.
    If you want to go in to each page individually, you can use a general indicator like id="localemphasis". (To emphasize more than one thing on a page, use a class instead of an id)
    Using this method, on the Tulips, Roses, and Gardenias pages, put id="localemphasis" on the Flowers parent menu item.
    On the Oak, Maple, and Spruce pages, put id="localemphasis" on the Trees parent menu item.
    To control the emphasis from the CSS stylesheet, you won't need to go into each page, but you will ID each parent menu item.
    Give each 'category' (Flowers, Trees) page a body ID to match the category
    Every Flower page wants the Flower parent menu item emphasized, give all three Flower pages a body tag like this: <body id="flowers">
    LIkewise, every Tree page wants the Tree parent menu item emphasized, as <body id="trees">
    Within the menu itself and on ALL pages, give each parent menu item an id to correspond to its category
    <li id="flowers_m">Flowers</li>
    <li id="trees_m">Trees</li>
              I have added a "_m" to remind myself that it is the menu item's id. You might need to put the id on the <a> link if you have not used a list for your menu.
    In your CSS stylesheet,
         #flowers #flowers_m,
         #trees #trees_m  {background-color: red; color: white;}
    Please use your own code! White on red might not be your cup of tea...use the same styling as the "hover" styling you mention in your query.
    To interpret what we have just done, we have said
         make the background-color red and the text white
    for the parent menu item Flowers (id="flowers_m") when you are on a Flowers page (body id="flowers")
    and for the parent item Trees (id="trees_m") when you are on a Trees page (body id="trees").
    This emphasis is good feedback for your user...remember that for SEO purposes, you will also want to use actual HTML text to reinforce the page environment, that is, h1 titles like FLOWERS and TREES. That will provide more feedback for your user.
    Beth

  • How to put separator lines in menu items in a gui status ?

    Hi,
    I have created gui status for my z transaction
    I need the separator lines in the menu items like it is seen in std transactions
    For example, in any screen , in the Help menu, we can see the following.
    Application Help
    SAP Library
    Glossary
    (line)
    Release notes
    (line)
    SAP Service Marketplace
    could you please help me how to put the lines ?
    thanks

    Hi,
    Goto Your GUI status.click on your  MENU bar.
    under the menu bar you will have your own menu items.
    where ever you want separator line  do the following way.
    you will have 2 columns under menu bar
    1) code
    2) text.
    under code dont put anything.
    but under text column you put dashes and enter or select right click there and choose separator line.
    you will get separator line.
    activate and run the ztcode.you will get .
    code                                            text
    Application Help                         
    SAP Library
    Glossary
    Release notes
    SAP Service Marketplace
    Thanks
    Parvathi

  • Muse 2014 -sub menu items appearing on roll-over etc.

    Hi, complete newbie, so sorry if this has already been covered elsewhere. Only started using Muse about 1 month ago and now using Muse 2014 - using horizontal menu widget and discovered how it now shows sub-menus when hovering over the main menu item- I find this great!
    I want a 'Contact Me' page with a basic form and this is not a problem, however, I want the sub-menus to appear when hovering over the other main menu items, but not the contact me page - might be completely off here, but created a 'Thank you' page as a child page of the contact me page and only want this displayed (not as a sub-menu choice when hovering over the contact me main menu item) when they have clicked the submit button on the form (I know how to set this re-direction in the forms options). Have tried playing with menu on the master page - switching off the edit together and changing settings on only the contact me menu item - without success- seems to apply to all main menu items.
    I would like to know how to achieve sub-menus on other menu items - but not on contact me item;  or whether I am going about trying to have a 'Thank you' response when someone submits the contact me form in the completely wrong way - can this be better achieved by other means?
    I would really appreciate your advice and help. My published site is 'onyerbikegeordie.uk' with the main menus - except not with a contact me page as yet, but would  give you an idea of what I am trying to achieve except for a contact me page.
    Sorry for the long post, but thanks for reading and in anticipation of your help!
    Joe
    Message was edited by: Joe Fitzpatrick

    Hi, managed to find the answer to this myself. In Plan, right-click on page and select Menu Options > Exclude Page from Menus. Job Done!
    Joe

  • Advanced Actions used for Menu - Takes 3 menu items for 1 to work? Advanced Actions Help

    Alright, here's my next struggle! I have a bit of a strange course I'm putting together that has required a unique approach (at least for me). Basically I'm having learners learn about 10 different reports they can run with a tool they have, and I have a menu (see below) on a slide to allow them to choose to view the reports they want to see. The course is required, but they can view what reports they want as long as they see three. So, what I've done is the following:
    Enabled Reporting with a score of 10 points for each Menu Item:
         When a user clicks on a Menu item, it automatically, without AA registers 10 points to the quizzing. The whole course requires a score of 30/80 to pass.
    Tried making a system of jumping to content and returning to Menu with a function to show an item has already been viewed:
         As seen below, there is a separate column on the right. Essentially each menu item has a standard action that first has a command to jump to the slide the particular menu item content is at, and then      two, a show function for the green box to cover the grey box indicating the content has been viewed already. The slides for which the user has jumped to has a jump-to-slide on the last slide of the      content to return to this menu.
    Checking for Three menu items viewed:
         I have a final slide that has an On-Enter Conditional action that says if the cpinfoQuizpointsscored is = 0 then show caption A, in a separate decision, a similar action but for score of 10, and again for 20,      just so I can send them to a slide that tells them how many reports they need to view before completing.
    So here's the problem: When I'm previewing this menu, clicking on a menu item the first time does nothing except bring in the green square. The second attempt on a different item does the same thing. Finally on the third Item I choose, it will jump to the slide as it should and I can return as I should be able to. So why is it taking two failed jumps to get to a jump that works? Order does not seem to play into it. And the only pause I have on the slide is at the end for the "next" button you see. Any thoughts?

    What would the pause do? I'm hoping they don't go just in order. And the menu items are indeed smart shapes set to be buttons.
    This is the timeline of that Menu Slide.
    This is the Advanced Action example for one of the menu items. Each menu item has a similar action.
    This is the conditional action that checks how many reports have been viewed.

  • How to assign script to menu item? (JS, CS3)

    Hi All,
    I can't find out how to assign a script to a menu item. Instead of clicking a script name in the script panel, I want to appear a menu item in the menu bar. When I click that name on the menu bar I want a certain script to run.
    I've managed to put the menu item in the menu bar, but not to assign the script to it.
    many thanks
    marco

    Hi Marco,
    Here is an example:
    #targetengine "kasyan"
    var myScript1 = new File(app.filePath + "/Scripts/Scripts Panel/Preflight CS3 v3.2.jsx");
    var myScriptAction1 = app.scriptMenuActions.add("Preflight Document");
    var myEventListener1 = myScriptAction1.eventListeners.add("onInvoke", myScript1, false);
    var myScript2 = new File(app.filePath + "/Scripts/Scripts Panel/Rename Sections v3.1.jsx");
    var myScriptAction2 = app.scriptMenuActions.add("Rename Sections");
    var myEventListener2 = myScriptAction2.eventListeners.add("onInvoke", myScript2, false);
    var myScript3 = new File(app.filePath + "/Scripts/Scripts Panel/Check 100 3 SE.scpt");
    var myScriptAction3 = app.scriptMenuActions.add("Check Resolutuon of Images");
    var myEventListener3 = myScriptAction3.eventListeners.add("onInvoke", myScript3, false);
    var myScript4 = new File(app.filePath + "/Scripts/Scripts Panel/Resize Images v16.1.scpt");
    var myScriptAction4 = app.scriptMenuActions.add("Resize Images");
    var myEventListener4 = myScriptAction4.eventListeners.add("onInvoke", myScript4, false);
    try{
    var myScriptMenu = app.menus.item("$ID/Main").submenus.item("Scripts");
    myScriptMenu.title;
    catch (myError){
    var myScriptMenu = app.menus.item("$ID/Main").submenus.add("Scripts");
    var myScriptMenuItem1 = myScriptMenu.menuItems.add(myScriptAction1);
    var myScriptMenuItem3 = myScriptMenu.menuItems.add(myScriptAction3);
    var myMenuSeparator1 = myScriptMenu.menuSeparators.add();
    var myScriptMenuItem2 = myScriptMenu.menuItems.add(myScriptAction2);
    var myScriptMenuItem4 = myScriptMenu.menuItems.add(myScriptAction4);
    Kasyan

  • Why is there a separate menu item for "Page setup" when there is already a tab for it in the "Print..." menu?

    I just can't see the point of having the same options in two places! The "Page Setup" tab from the "Print..." menu item has more options, relating to printer features, whereas the "Page Setup" dialogue box is basic and looks to me to be a little 'shoddy'. I'd have thought it would be a good idea to have the 'better' set of features available, but from it's own menu item, rather than a tab. And no duplicated controls!!

    Firefox on Windows doesn't have Page Setup in the Print dialog, it is in the Print Preview window.
    That isn't the only menu item that appears in multiple places. '''View Page Info''' is in the Tools menu (on Windows) and in the Contextual menu. '''Bookmark this Page''' is in the Bookmarks menu and the Contextual menu, along with the Tab Context menu.

  • Need to remove default dock menu item and add new.

    Hi ,
    I am working on Carbon application on Xcode . I need to remove default menu item attached to my application dock menu like ( Remove from Dock , Open at Login , Show in Finder ).
    I also need to attach new items to my application dock menu and want to handle its event.
    Thanks in advance,
    Sunil Adhyaru.

    Well, this is a programming question more than a question on how to use the Leopard environment (you might want to post to one to the programming forums).
    However, basically, you can't remove the Dock menu items that the Dock itself adds (add/remove from dock, etc.). You can add your own menu items, however. Use the interface builder to create a nib that has a menu in it -- call it something catchy like MyMenu.nib.
    Then in the application property list file (Info.plist) add property called "AppleDockMenu" and set the value to a string that's the name of your nib file (without the .nib extension).
    Subsequently, you treat that menu just as you would the menus in your menu bar. That's all there is to it.

  • My user defined menu items not shown up in Main Menu

    Hi,
    I have some my own menu items need to add into Main Menu list, it works fine but only issue is the screen flash lot. Since all the menu items are in the form called "Main Menu" form then I tried to use oForm.Freeze(true) and oForm.Freeze(false) before and after adding menu items. Now the weird thing is though the screen doesn't flash but i can't see the new added menu items in the Main Menu form. But I can see them under the system menu Modules menu. Any idea?
    Thanks!
    Lan

    Hi All,
    After check the SDK help, I found the reason. I need to call oForm.Update() after. Now it works well.
    Lan

  • How to reset input Text value on click of root menu item navigation link ?

    All,
    Jdeveloper - 11.1.1.6
    I am facing this issue across the pages.
    I have a root_menu.xml based navigation available as links at the top of ADF application. Some of the menu links directly have JSPX pages having the content being loaded , and others are JSPX containing Bounded task flow.
    Issue :
    On the click of the menu links, the page gets reloaded / refreshed , however the input value given on the page remains displayed even after refresh.
    We need the page refresh along with any input test box getting cleared on Menu item click.
    Any pointers as to how we can resolve.
    Thanks

    If your page is in a taskflow (which it should be as you use pageflowscope), you should have a method action in your task flow which you call to clear all the values you use in the UI.
    Timo

  • I was using open office spreadsheet today and inadvertantly clicked on a menu item that caused the Apple toolbar to disappear when I am in open office.  How do I get it back at the top of my screen?  I am currently using OS 10 Lion.

    I was using open office spreadsheet today and inadvertantly clicked on a menu item that caused the Apple toolbar to disappear when I am in open office.  How do I get it back at the top of my screen?  I am currently using OS 10 Lion.

    Click on the Menu bar  and go to View .  Or, hover over where the Menu bar shiuld be and click on it when it appears.  Try quitting and relaunching Finder.

  • Finding which menu item has been clicked

    Does oracle forms have anyway of knowing which menu item has been clicked.
    I have a security structure set up where menu items are made visible depending on their name, which in turn is based on the individual forms that a particular user can access.
    I would like to write a generic method for all menu items where it uses the name of the clicked menu item to perform a query, the result could be used to open a new form.
    So is there a build in or some 'secret source' which tells me the name or gives me the id of a clicked menu item?
    Message was edited by:
    gazbarber

    Not entirely sure what you mean, are you sugesting i have a generic method with a switch statment and uses the input paramter to decide what to do?
    It's not really what i'm after, rather I already have the name of the menu item in the database, the same table also contains the module filename that clicking the button should go to.
    So the idea would be somthing like
    declare
    begin
    select module name into new form from secutity table where menu item = :system.current menu item;
    open_form(new form);
    end;
    :sysem.current menu item is the missing ingreadiant.
    My menu has many items in the hundreds i think so even the generic switch staement would be pretty tedious and i want changes in the database to be felt system wide as they are else where in my system.
    Thanks for you help and i hope this explains my question better.
    Regards,
    Gareth
    Message was edited by:
    gazbarber

  • Why were the new tab and new window right click menu items reversed from FF3.6 on FF4?

    I've been using Firefox since before version 1. when you right click on a hyperlink the first menu item had always been "open in new tab" and the second item was "open in new window" Now in Firefox 4, they have been reversed and it is a major pain in the rear. I even went and checked Firefox 3.6 on other PCs to make sure I wasn't wrong, and sure enough, they are reversed. I have verified this on both Windows XP and 7. I find my self constantly opening new windows instead of tabs. Is there a way to change this besides going back to ver. 3.6? Dumbest idea anyone at Mozilla ever had. Please change it back to the old way in 4.1

    Thanks edmeister with that add on I was able to change it. I still feel it was a bad idea to change it in the first place. I don't like the tabs up on top by default versus being in the old location either, but I did find how to fix that.
    I want Firefox to look and function like Firefox not chrome or opera. If I wanted chrome or opera I'd install it. I tried both and didn't like the interface of either one of those. You listening Mozilla?

  • Removing right-click menu items

    When I highlight a group of text in a web page and right click the text, There are 4 options in the menu for converting the text to PDF.
    How do I remove these options from the menu?

    Why doesn't adobe have an option within settings to remove shell/context/menu items?
    For those who don't want the extra crap cluttering up their menus...
    In winXP
    -(with IE closed), click 'start', 'control panel', 'internet options'.
    -Click on the 'programs' tab.
    -click 'manage ad-ons'
    -Find the Browser Helper Object called 'AcroIEToolbarHelper Class',
    --highlight it and click 'disable'.
    -Click 'ok' to close the manage ad-ons window, click 'ok' to close the internet options window.
    You still need to remove the items from the right-click menu.
    (*everyone puts a disclaimer so here goes. If you are scared to edit the registry...don't. Create a restore point, don't touch any other entries except the ones listed.)
    -click 'start', 'run', type 'regedit', click 'ok'
    -go to this entry "[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt]"
    -delete the 8 Adobe 'convert....' entries. (or just the ones you want gone).
    (You can export them if you want, just highlight, right-click, export, and save them somewhere, but it's not necessary. If you want them back just go to 'internet options' in 'control panel' and 'enable' the Browser Helper Object again. If you re-enable it, the next time you start IE the registry entries and right-click items are replaced.)

  • How to popup a new forms window upon clicking Tools- Menu item

    Hi,
    I am new to forms. Can some one help me out with the following requirement?
    I need to provide a new 'Menu' item in the Tools menu of a seeded form and when the user clicks on the new menu option, he should get a new window wherein he can input some values. Then I need to read these user input values and pass them to a custom stored procedure and invoke the stored procedure on the database. After the stored proc finished executing I need to re-query the block on the seeded form to populate the latest records.
    Appreciate if some one can let me know the implementation steps for the requirement mentioned above.
    Thanks
    Sara
    Edited by: 4377318 on Sep 2, 2008 2:33 PM

    Hi OraMol,
    Thanks a ton for your response! Looks like it is pretty simple, but can you please brief me on how to create this 'canvas' to accept parameters and requery the base block? I know its a silly question though but basically am new to forms :)
    Sarah

Maybe you are looking for

  • When I enter the website, Firefox stops responding and I have to end the process from the Task Manager. How do I solve this problem?

    I am running Firefox 4.0 beta 7 on Windows XP Tablet Edition OS. When I enter this site using Firefox, the browser stops responding and I have to end the process using Task Manager. However, when I open it with other browsers such as IE8, I am able t

  • I am not able to create EnterpriseBean in NWDS

    Hi all, I am trying to create a Module in NWDS and referring this blog. /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter and am following the procedure to develop Module as specified in this PDF. https://www.sdn.sap.com

  • FCP Project to Adobe Flash

    I've been asked to provide a completed FCP project to a web administrator who operates only in Adobe Flash. Mine is a 720p 16:9 project -- his environment is 4:3 sometimes as dial-up speeds. :--( Should I deliver just a Quicktime file? Should I deliv

  • I have a Desk Jet 3050. How can I get it back online?

    The product is HP Desk Jet 3050 , I operate on Windows 7. Printer is saying not connected to wireless. My local cable company had internet issues and the printer worked fine before. Everything BUT the wireless printer worked normal after the issue wa

  • I can't delete or cancel a print job

    I sent a photograph to print on my HP Photosmart B209-am printer.  When I waited over an hour for it to print and nothing happened I tried to delete it.  The status has said "deleting" for several hours.  I have run task manager to cancel, I have reb