Catch all menu events

Hi, I'm using SAP B1 8.81 with B1DE.
I have added a large number of custom menu items in an add-on.
Normal B1DE menu click handling would mean I have to create a class for each created menu and set it's menu Id to filter for the click on the specific menu.
I want to catch all menu clicks and based on the menuId, call some proc that "knows" what to do for the id in question.
Is there any way to set up an event handler which will respond to all menu clicks??
Regards,
Ben

Hi Ben
Use this code  in your EventsHandler class
<B1Listener(BoEventTypes.et_MENU_CLICK, True)> _
            Public Overridable Function OnBeforeMenuClick(ByVal pVal As MenuEvent) As Boolean
            Dim form As Form = B1Connections.theAppl.Forms.ActiveForm
            'GENERATED CODE
            Return True
        End Function
<B1Listener(BoEventTypes.et_MENU_CLICK, False)> _
        Public Overridable Sub OnAfterMenuClick(ByVal pVal As MenuEvent)
            'ADD YOUR ACTION CODE HERE ...
        End Sub
Hope this helps
Regards
Arun

Similar Messages

  • How to catch ALL call events with JTAPI

    Hi,
    I have my JTAPI application witch is listening for ALL calls that are placed on CUCM system. Based on this information this software is making some routing decisions. At present getting the information about all calls is very inconvenient - I have to track all events from all phones, so my CTI user has to have ALL phones on its Controlled Devices List.
    Is there more intelligent way of getting all call events without controlling every single device? I am interested in any version of CM or CUCM.
    Regards,
    Andrius Kislas
    CCIE #18338 Voice

    According to the documentation, lineMonitorTones should be available (though that's the 7.0 documentation I'm looking at) - going through a wrapper always add another place where things can go wrong. E.g. we're supposed to get device state events with the latest version but when I tried I still got nothing. If you can handle tapi browser you might want to try it and see if it works, and if so, get in touch with the developer of the lib (I did once... really nice and helpful guy).
    Alternatively, there's no need to catch digits.. you may not even be able to terminate the call in the status you're looking at so you could just listen to call events and get the first one where the call actually starts (as in "all digits dialed") and terminate it then.. it probably won't make much of a difference either unless you want to prevent people from making certain calls and cut them off after a few digits.. but that is better done using partitions and css.. they are meant to prevent people from calling certain numbers and it would be ill advised to duplicate this functionality in your own software (which after all could fail every now and then.. or the app could lose the connection to the server, etc.)

  • Catcherror event "catch all system exceptions" is not catching subLanguageExecutionFault

    catcherror event "catch all system exceptions" is not catching subLanguageExecutionFault in BPM process

    hi rani,
    thanks for the response
    i supply all the connection details(gatewayhost, gatewayservice, programid, clinet, systemnumber, applicationhost, userid, password etc.) to the program which extends "JCoIDoc.Server".
    the program is taking care of all the connection establishment details.but still m facing the same problem.
    i have also confirmed that the user is a communication user, not a dialogue user.
    thanks
    pavan

  • AWTEventListener: Catch all events after events are invoked

    Hi,
    i read here about catching all event of my application: http://developer.java.sun.com/developer/qow/archive/19/index.html
    But: Is there a way to invoke my eventDispatched method after the
    current event was calling?
    For example: I need on selecting a Combobox the selected value, not the last
    selection.
    Thanks.
    Regards.

    Thanks for reply!
    I use an ItemListener on my ComboBox, but my problem was that the eventDispatched method was not
    called. I did it like this:
            getToolkit().addAWTEventListener(
             new AWTEventListener() {
                 public void eventDispatched(AWTEvent e) {
                  System.out.println(e);
             AWTEvent.ITEM_EVENT_MASK
            );Is that a problem of JDK1.4.1 ???
    So tried it with a AWTEvent.MOUSE_EVENT_MASK to check a combobox in my application
    is clicked. It works, but i get always the last selection von the combobox.
    74philip: Thanks for your solution, but my "code for the selected event here..."
    should be in the eventDispatched method. I cant change my app for any comboboxes.

  • Java Swing frame for modification Excel file or Word file with All menu...

    Hello All,
    Can Any one help me for making java Swing frame for modification Excel Data or word file with all Menu.. Plz send me java Code for that.. I am bit new in Swing.
    i am waiting for ur help..
    Thanks
    Samir

    hi pbrockway2 ,
    Can you go through this program Sir, i am trying to call Excel content below of menu. when i will press Edit button then excel content should come below with Cut, copy, paste , Save Button..
    Plz help me sir...
    import javax.swing.*;
    import java.io.*;
    import java.awt.event.*;
    public class TestReader
    private static void createAndShowUI()
    JFrame.setDefaultLookAndFeelDecorated(true);
    JFrame frame=new JFrame("Test Reader");
    JButton button=new JButton("Edit");
    button.addActionListener(new ButtonListener());
    frame.getContentPane().add(button);
    frame.setVisible(true);
    frame.pack();
    static class ButtonListener implements ActionListener
    public void actionPerformed(ActionEvent event)
    openTheFile();
    private static void openTheFile()
    try
    String commands[]=new String[3];
    commands[0]="cmd.exe";
    commands[1]="/C";
    commands[2]="INSTALL.LOG"; // here file name is supposed to be in the working dir
    Runtime rt=Runtime.getRuntime();
    Process proc=rt.exec(commands);
    StreamGobbler errorGobbler=new StreamGobbler(proc.getErrorStream(),"ERROR");
    StreamGobbler outputGobbler=new StreamGobbler(proc.getInputStream(),"OUTPUT");
    errorGobbler.start();
    outputGobbler.start();
    catch (Exception e){}
    public static void main(String args[])
    SwingUtilities.invokeLater(new Runnable()
         public void run()
         createAndShowUI();
    static class StreamGobbler extends Thread
    InputStream is;
    String type,root;
    StreamGobbler(InputStream is,String type)
    this.is=is;
    this.type=type;
    public void run()
    try
    InputStreamReader isr=new InputStreamReader(is);
         BufferedReader breader=new BufferedReader(isr);
         String line=null;
         while ((line=breader.readLine())!=null)
         System.out.println(type+">"+line);
    catch (Exception e)
         System.out.println(e);
    Thanks
    SamiR

  • About cathing menu events

    Hello all!
    I have a problem:
    I want catch menu event if only My form active now. So how i can to set this condition?
    For example, we have sample in COM UI DI (2.ToolBarCtrl). And if we will run this add-on, after that will  close add-on's form and will press "Next record" we will have Error (becouse add-on can't find form)...
    Thank you.

    You can check in the event if the active form is your form.
    if SBO_Application.Forms.ActiveForm.FormTypeEx = "YourFormType" then

  • Main VI Menu event calling a subVI front panel

    Hi all,
    I have a subVI whose front panel is loaded upon calling by a main VI.
    I call the subVI using a User-menu event.
    the subvi-properties are set to allow close window and i am not handling a 'panel close' event.
    The problem is....
    when i run the main VI and click on the menu that loads the subVI front panel, subVI window opens, and if i click on the window-close, the main VI hangs.
    i understand that the control remains with the subVI only and never returned to main VI after i close subVI panel.
    but is it the only way to handle the 'panel close event' or any other way out to solve this?

    Try running the VI with highlight execution turned on, and see if anything unexpected is happening, or you could post your vi and let us take a nosey
    Message Edited by yenknip on 09-12-2008 04:30 PM
    - Cheers, Ed

  • Issue: all day events arent shown in year view

    Hi,
    the normal behavior would indicate an event in bold in the year view. but this only happens on days where normal events (no all day events) have been set up.
    i cross checked it with a 2012 client. working as expected. all day events show up in the year view.
    excerpt from the manual:
    Code:
    Changing How All-Day Events Are Displayed
    You can change the way that all day events are accepted into your calendar by using the Options menu.
    1. Click Tools > Options, double-click Calendar, then click the General tab.
    2. In the Accept Options area, click the drop-down menu located beneath Accept All-Day-Events I send to myself as, then choose the option you want.
    3. Click OK.
    sry, but i dont see how i can change the way how all day events are displayed.
    is there still a need to copy the view files to the groupwise server?
    thx

    bahsig wrote:
    > sry, but i dont see how i can change the way how all day events are displayed.
    The setting you quote is actually to determine how all-day events that you
    create for yourself are handled (for any future event you create). By default,
    all-day events have a display of "free" (as opposed to "busy" or "tentative" or
    "out of office"). If your calendar is "free", then there is no bolded
    indication that you have something scheduled in the year view.
    If you look at an all day even in your calendar, you will see a box under
    recurrence that says either "free/busy/out of office/tentative". In order for
    an all day event (or any event really) to bold the calendar number, this value
    cannot be "free".
    There is no need to copy views to the Post Office any longer. Views are in a
    fixed location on the server (/opt/novell/groupwise/agents/data) and the POA
    always has access to them.
    Danita
    Novell Knowledge Partner
    Upgrading to GroupWise 2014? We've got you covered
    http://www.caledonia.net/store
    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  • All day events do not appear in iCal 5.0

    Even if I enter a new all day event in iCal, it disappears right away, but it is still synced to MobileMe. So on my iPhone/iPad, they're all there. but iCal stays "clear"... anyone having the same issue?

    Hi,
    Have you made sure that Show All-Day Events under iCal's View menu is checked?
    Best wishes
    John M

  • All iPhoto events appear empty in "Event" view

    When I view my iPhoto 11 library by "Events", I get the usual listing of all my events, and I am able to scroll through the preview pictures at this level within the individual small Event icon. The key photo shows as normal.  However, if I double click on an event, the event comes up but without any photos showing, not even an empty grey window frame for each photo.  The name of the event shows correctly but on the top right corner it simply says NO PHOTOS.
    Now the strange thing is that if I view the library by "Photos" or "Faces" or via Albums etc, I see all my photos and they all appear to be in their corresponding events as normal.  I can even right click on one of my photos and click "Show Event" and then the correct event comes up with all the photos showing.  But if I then go back to "All Events", I will see all the events but if I select one (even one I have just viewed), it will then say NO PHOTOS.
    I have deleted the plist files (included the "locked" ones) from both iPhoto and Aperture but this doesn't resolve the problem.  I've also done a "Repair Permissions", "Rebuild Thumbnails" and "Rebuild Database" from the iPhoto First Aid menu (Opt-Cmd Click when opening iPhoto) and none of these have fixed the problem!  
    I just recently started using Aperture to view the same Library and I have no problem viewing the "Projects" (which is the same as Events in iPhoto) in the normal way.  I have a feeling that this problem started only when I first opened the iPhoto library in Aperture.
    Any ideas?

    You don't need to purchase iPLM to use it to rebuild the library.  But try this first:  apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • All day events not showing up in iCal

    On my iMac I cannot enter an all day event in iCal.  All day events entered via my iPhone or Mobile Me also do not show up on the iMac.  Just upgraded to Lion, no problem before this!

    Hi Linda,
    Open iCal and from the View menu check that Show All-Day Events is checked.
    Best wishes
    John M

  • All day events showing in iCal

    Hi,
    I am trying to work out how to get iCal to show more than two (2) 'all day' events in the monthly view? At the moment if there are three (3) all day events in one day, it only shows two of them and then a "..." in the top of that days 'box'. How do I set it so that it shows all of them??
    Thank you.
    BJ.

    Hi Linda,
    Open iCal and from the View menu check that Show All-Day Events is checked.
    Best wishes
    John M

  • New Calendar beta on MobileMe deleted all my events

    ... even though a dialogue box promised that it wouldn't! The box warned that my GROUPS would be lost, but that all my EVENTS would remain. No such luck. A few random events appear in the "all day" section" but hundreds of events are gone ... from iCal on my laptop. All of the events appear to have survived at MobileMe, so now I'm forced to use the web-based version. Is that what the beta is? Has Apple simply dropped iCal? Any ideas?

    Answered my own question ... an email showed up from Apple telling me how to install/synch iCal with the new beta. The email contains a link to web page with instructions; unfortunately they did not solve my problem. Everything detailed on the web page was already set up exactly as shown, since I've been a MobileMe member from the early days of ".Mac". But here's what fixed my problem:
    Even though my MobileMe panes were all set up correctly, and I could "sync" in the MobileMe "sync" tab, no events were showing up. I ran software update and, lo and behold, there was a "security update" that had just shown up, so I installed that (plus the accompanying iTunes update or whatever it was). iCal still didn't work. But then, upon starting iCal, I got a dialogue box telling me that my user name and/or password was not being accepted by the server (even though it was working fine in the MobileMe system preferences panel). In iCal, I went to "Preferences" and then to "Accounts" and noticed that my user name had been entered for me (correctly), but my password had not. I entered the password, quit iCal, restarted iCal, and waited. Within a minute or so, things were whirring, and after a few minutes, all my events were back, but my groups were gone, as warned. (Not a big deal, as far as I can tell.) Just wondering why Apple didn't tell me to look in the "Preferences" menu in iCal in the first place. (Or why the info wasn't all entered automatically, since some of it was ...).
    All's well that ends well ...

  • Why does my all-day events disappear off iCal after Mountain Lion upgrade

    After upgrading to mountin lion, I can no longer see any all-day events on my imac. They are still visible on my iphone. If they are entered on my imac, as soon as I check the box for all-day event, the entry disappears from the calendar. Any ideas?

    Solved this myself.  In the View menu you (I) need to check "Show All-Day Events".

  • Accidentally merged all iPhoto events. How do I get my event data back?

    I accidentally merged my iPhoto events all into one event. I'm using iPhoto 11 on Yosemite. My problem is, my last backup to my external hard drive was in April 2014 (I know, my fault). Is there a way to restore the events? I notice in the metadata there are event files that date up to April 2014. Can I use these to restore the events? I realize I might not be able to get the events from April 2014 onward restored. But is there a way to at least restore the events created prior to April 2014?
    I'm not really sure how all the metadata and backup files work so any help is appreciated.

    Well no one has ever found a way.
    Try rebuild with iPhoto Library manager.
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.

Maybe you are looking for