Menu Events in Matrix

Hello,
I created an UDO with Document and Document Lines.
The Document Lines reside in a Matrix.
Everything works fine but:
The System Menus like "Delete Row(Ctrl+K)" are disabled while working in this UDO Form.
How can I fix this?
Can someone help?
Thanks in advance.
Rudy.
Message was edited by: Ruediger Gertz

Hello Trinidad,
thank you for you promptly answer.
Yes. The form mode is changing, but the addon don't receive the event(sometimes).
For the 2nd problem: How can I receive the keyboard shortcut "Ctrl+K" while the cursor is in the matrix.
I would like to remove the system "row delete" menu temporarly and replace it with my own menu entry. But I want to keep the normal usability for the user (Ctrl+K = remove a line from the matrix).
Is there a chance to do something like that?
In my own event tracker tool, I can't see any event fired, when I type Ctrl+K while the curser is in a matrix cell...
Thank you in advance.
Rudy.
Message was edited by: Ruediger Gertz

Similar Messages

  • 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

  • Applicaiton form hangs when trying to make C# form visible from menu event

    I have a MDI windows app, running as an addon on Verion 2007A
    The applicaion is written in C# ( VS 2005)
    I am a newbee to C# ( VS too ) as well.
    All I want is to display the MDI container form when a menu is clicked. But the windows form hangs forever, and does not show.
    if I try to show the form within Main method then no issues! The problem happens only off the SBO menu event .
    I cannot have the form loaded all the time. so I need the services of the SBO menu click, so a user can open it whenever he wants.
    Note: I can open any other form off the menu click, but that , provided they are not MDI containers and they are opened with ShowDialog(); If I use Show(); then again hangs.
    I tried opening the MDI form in Main method, ( wich of course works) and hide it when not needed. I could hide the form, but when I issued a command myForm.visible = true;  through the SBO menu event, again hangs!
    my applicaion Main function is as follows. The class AA_SBO_MAIN  holds the SBO application events.
    static void Main()
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Classes.AA_SBO_MAIN oSBOMain = null;
                oSBOMain = new Classes.AA_SBO_MAIN(); 
                 Application.Run();        
    the menu event simply does
                  frmMain fm = new frmMain();
                  fm.Visible = true;

    Hi
    I try doing these few steps and it seems to work!  The code is in Visual Basic though!
    Declare the form variable
    Private mMDI As New frmMDI
    In your menu click event enter a code like this
    If mMDI Is Nothing Then mMDI = New frmMDI
    mMDI.Visible = True
    On your startup function do something like this
    Public Sub New()
           mMDI.Show() : mMDI.Visible = False
    End Sub
    And more important ... in the form class comment all the code inside the Dispose method
    and finally do the following
    Private Sub frmMDI_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
            Me.Hide()
    End Sub
    it seems to work for me . Hope it helps you too!

  • InDesign CS5 crashes on menu events

    If I install a menu event with applescript, indesign CS5 crashes if the last event handler contains commands from the UI Suite (make dialog...). The dialog appears, but after selecting something indesign crashes. I tried everthing that I know. Event handlers without dialogs and with standard apple script dialogs (display dialog) are running fine. Does anybody made similar experience?

    Excellent information - but it didn't seem to help.
    I renamed the two files, opened the application again and saw the same behavior. The system did add new InDesign Defualts and InDesign SavedData files - that were much smaller than the renamed ones.
    Just  note, this is a new computer - I did not have InDesign CS4 loaded on this laptop.
    Also, we have two licenses. The person using the second license has exactly the same problem.
    Any other ideas?? Thanks again.

  • Loading screen painter form via a menu event.

    Hi,
    In my application, I am trying to get my screen painter form (.srf) to display through a menu event. The thing is when I click on the menu the first time it loads okay but when I close it and try to open it by clicking it again nothing happens. I am doing it as below.
    Anyone have any ideas?
    private void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                try
                    if ((pVal.MenuUID == "vdetails") & (pVal.BeforeAction == false))
                        Form_1();
                catch (Exception ex)
                    SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    private void Form_1()
                string strTmp = "vclMgt.srf";
                LoadFromXML(ref strTmp);
                oForm = SBO_Application.Forms.Item("frmVMGT");
    private void LoadFromXML(ref string FileName)
                System.Xml.XmlDocument oXmlDoc = null;
                oXmlDoc = new System.Xml.XmlDocument();
                string sPath = null;
                sPath =  System.IO.Directory.GetParent(System.IO.Directory.GetParent(Application.StartupPath).ToString()).ToString();
                oXmlDoc.Load(sPath + @"\" + FileName);
                string strXML = oXmlDoc.InnerXml.ToString();
                SBO_Application.LoadBatchActions(ref strXML);

    Hi Binita,
    Thank you for your suggestion but it hasnt worked, the form doesnt display and no errors appear.
    This is how i've done it in C#
    private void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                try
                    if ((pVal.MenuUID == "vdetails") & (pVal.BeforeAction == false))
                        foreach (SAPbouiCOM.Form oForm in SBO_Application.Forms)
                            if (oForm.UniqueID == "frmVMGT")
                                found = true;
                                MessageBox.Show("Found");
                        if (found == true)
                            SBO_Application.Forms.Item("frmVMGT").Select();
                        else
                            LoadFromXML("vclMgt.xml");
                catch (Exception ex)
                    SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    Where 'found' is global.
    I saw a similar issue someone else had but it wasnt resolved.
    Any more ideas?

  • How to catch cell lost focuse event of matrix

    Dear all
    can you tell me how to catch the cell lost fouc event of matrix.
    i want to check the value is entered the that cell, which is not greter than the extising value..
    thanks in advance......

    Hi
    For that you can use either validate or lost focus event
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            ' BubbleEvent sets the behavior of SAP Business One.
            ' False means that the application will not continue processing this event.
            ' Validate event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
              (pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE) Then
                If (pVal.Before_Action) Then
                    'write your code
                End If
            End If
            'Lost focus event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
             (pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS) Then
                If (pVal.Before_Action) Then
                    'write your code
                End If
            End If
        End Sub
    Hope this helps
    Regards
    Arun

  • How to handle main vi short cut menu event in subvi

    I am making a thin GUI with a subVI to handle all the events including top VI UI events. I can get most of the events working but not with the short cut menu events. What I did was to pass the top VI control reference to a subVI and then registered for dynamic event. The event refnum is then passed on to another subVI next to it with the actual event structure where the top VI control's short cut event was handled. (using two separate subVIs definitely helped clean up the code, and I don't suspect it is the problem as other events worked fine in this structure)
    After not able to get it to work, I also tried to register the dynamic event inside the event structure of the 2nd subVI mentioned above, which still not working. Your help is greatly appreciated.

    I do have another problem related to handling top VI events in a subVI:  as my top VI controls were set as "Latch When Released", they cannot be located inside the event structure anymore, the result is that even though I can have their events correctly handled, those controls will stay pressed and not returning to the latch state as previously when I had the event structure located in the top VI itself.
    As I have to many controls, I dont want to change their mechanical action state and just wish to have an easier solution. Thanks.

  • Menu Event - Loading srf or xml forms.

    Does anyone have working C# code that loads a form created using screen painter through a menu event?
    When i try loading my xml or srf forms through a menu event, the forms load the first time but when the user clicks on the menu the second time the form doesnt appear. I cannot seem to find a solution to this!!

    Vitor,
    Here is the code:
    private void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                try
                    if ((pVal.MenuUID == "vdetails") & (pVal.BeforeAction == false))
                            load();
                catch (Exception ex)
                    SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    private void load()
                string strTmp = "vclMgt.srf";
                LoadFromXML(ref strTmp);
                oForm = SBO_Application.Forms.Item("frmVMGT");
                oForm.Visible = true;
    private void LoadFromXML(ref string FileName)
                System.Xml.XmlDocument oXmlDoc = null;
                oXmlDoc = new System.Xml.XmlDocument();
                string sPath = null;
                sPath = System.IO.Directory.GetParent(System.IO.Directory.GetParent(Application.StartupPath).ToString()).ToString();
                oXmlDoc.Load(sPath + @"\" + FileName);
                string strXML = oXmlDoc.InnerXml.ToString();
                try
                    SBO_Application.LoadBatchActions(ref strXML);
                catch (Exception ex)
                    SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");

  • 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

  • Call Menu Event from code

    Good Day
    Experts:
    I would like to call a MenuEvent from code in one of my forms.  A Sub in my Main.vb class called MenuEvent handles which form to open:
    MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
    I cannot figure out how to call that MenuEvent from in my form code.  So far I have:
    <b>Project.Class.MenuEvent(test, True)</b>
    test is defined as:
    <b>Dim test As SAPbouiCOM.MenuItem
    test = "AddOper"</b>
    When I run the code to try and call this MenuEvent, I get an error "Unable to cast object System.String to type SAPbouiCOM.MenuItem"
    Does anyone have an feedback that might help me call a MenuEvent from my form code?
    Thanks,
    EJD

    Thanks for the Response Ad
    I did not explain well.  The MenuEvent Sub I have here refers to a Menu that I am loading as an AddOn.  From that menu I am loading forms/screens that were written in VB.Net.  Here is the code for a few of the forms/screen calls in my MenuEvent sub:
    Public Shared Sub MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            Try
                Select Case pVal.MenuUID.ToUpper
                    Case "Test_WO"
                        Dim WOForm As New Test_WO
                        BubbleEvent = False
                    Case "Test_AddOper"
                        Dim WOAddOperForm As New Test_AddOper
                        BubbleEvent = False
                 End Select
            Catch ex As Exception
                HandleException("Event Handler - Menu Event Handler", ex, False)
            End Try
        End Sub
    I want to make a call from this MenuEvent while inside a form/sceen.  This way the User does not have to go back to the Menu list and click on it.  So, I need to call <b>Public Shared Sub MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)</b> from inside a form/screen.  I canot figure out the syntax to make the Case "Test_WO" fire from inside my form.
    Can you help?
    Thanks,
    EJD

  • 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

  • I am using the "Menu Selection With Events.vi" example alongside other while loops, When I select exit from the new menu it stops the other while loops but not the menu/event while loop

    The event driven menu example works fine and I've integrated it into my application. I have built in simple local vars to link menu selections to existing GUI buttons. The problem is that I cannot get the File-Exit menu option to switch off/terminate the application. The [1] "Stop": Value Change panel of the event structure simply switches off the other while loops but leaves the event while loop running. Add a while loop to the axample using a local var from the event while loop to terminate 2nd while loop to get the effect.
    Help appreciated, Chris

    Attached you will find a modified version of your VI.
    I documented what I did on the block diagram.You were right on you just needed to add a variable with a true wired to it.
    Have fun with it.
    Joe
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    Menu_Selection_with_Events_%26_while_loop[1].vi ‏76 KB

  • 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

  • Event on matrix cell

    Hi,
    i am creating a form similar to the purchase order form of B1. As in the PO form of B1, when i do tab on the matrix cell of the item code, i want to load the item-master details. To do this, i need to know which event is fired when i do tab in the matrix cell.
    Does anybody know about the event fired...or anything else regarding the issue...
    Help urgently required,
    Thanks....

    Hi Arpit,
    The most efficient way to do this is to bind a Formatted Search to the colum. Not do this capturing events, it's very slow, and a hassle to program.
    1) Create (Tools > Queries >Query manager) a user defined query:
       <i>SELECT ItemName FROM OITM WHERE ItemCode = $[$MyMatrix.MyColumWithItemCode.0]</i>
    2) Save the query
    3) Open your own form, click the columncell where you want to show the ItemName, press ALTSHFTF2
    4) Tick the 3th radio button <i>Search by Saved Query</i>
    5) Double click the input field and select the query saved at step 2
    6) Tick the box auto refresh and select in the drop down box your ItemCode column.
    Now every time the focus is lost from the ItemCode column, the itemname is displayed in the other column. You can also do this for other values, fields etc.
    Those steps I've described can also be done by code. (for a automatic installation or so) See the DI-API help; FormattedSearches and UserQueries objects.
    Hope it helps,
    Rowdy

  • Menu events in SubVIs

    Hello...
    I am using a dynamically loaded subvi, that is displayed in a subpanel in my
    main.vi. Now I want to fire events in the subvi by using the custom menu in
    the main.vi. How is this possible, for the event case I can only select
    <This VI> as the event source, how can I get the main.vi menu as the source
    for the events.
    PS: I´m using Labview 7.1
    Thanks
    Stephan

    You can have an event structure in the top VI detect the menu selection and fire a dynamic event or a signaling event [like Value(Signaling)] to trigger the event in the subVI.
    You will need to do some extra programming for this (pass the data to the subVI).
    Try to take over the world!

Maybe you are looking for

  • Cannot view content grabber in Illustrator CC

    Hi all, I'm very new to Illustrator and finding the learning curve to be quite steep. Two questions - First, is there a kind of "getting started guide" with a brief explanation of the very basics and all features? The little random tutorials they sho

  • Don't know where the error is!!!

    hi again i wrote the code for the add button ,, but when i enter the path of the .au(eg a:\piano.au) in the text field and click add it will be added to my database and the .au file will be saved as a long binary data in the db,, when i come to searc

  • Template for termination of a rental agreement

    i am looking for a template for a early termination for a rental agreement

  • Deploy without admin server running

    Is it possible to perform deployments on managed nodes without having the admin server running? Currently we are performing deployments using wldeploy ant tasks and we check for admin server availability.

  • Is it possible to add an effect to just a small portion of a song?

    I haven't found a way to add an effect to a track (or edit volume levels like you do on the master track) to just a small portion of the song...let's just use the pre-chorus for example. What if I want to add an effect to my vocals or guitar JUST in