Skip to Content

Matrix Linked Button to diferent object types y the same column

Hi, I have the same problem. I need to set a LinkedButton to one column to redirect to diferent object types (invoices, credit menos, purchase invoice, etc). I tryed with setting the event handler for the matrix:

oMatrix.LinkPressedBefore += OMatrix_LinkPressedBefore;

and catching the event I set the linked object

private void OMatrix_LinkPressedBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent)
            BubbleEvent = true;

            if (pVal.ColUID == "NroSAP")
                string sObjectType =

                SAPbouiCOM.Column oColumn = (SAPbouiCOM.Column)oMatrix.Columns.Item(pVal.ColUID);
                SAPbouiCOM.LinkedButton oLink = ((SAPbouiCOM.LinkedButton)(oColumn.ExtendedObject));
                oLink.LinkedObjectType = sObjectType;

this work fine, but, the linked button has a "preview mode"

Do you know how to disable this "preview mode" or how to catch this event?

Thank you and Best Regards

sin-titulo.png (13.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 18, 2017 at 05:03 AM

    Hi Sebastian Pereira Cendan,

    Could you please help to try this?

    1. Once the Linked Button is pressed, On BeforeAction=true, set the BubbleEvent to false.

    2. Set the desired LinkedObjectType.

    3. On BeforeAction=false, set the BubbleEvent to true.

    Check does this help you?

    Kind regards,


    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded

  • May 19, 2017 at 04:14 PM

    Hi Ankit, thak you for your help. If I set BubbleEvent to false the form is not open and the preview still.

    What I'm trying to do is to set a linked button to a column of a matrix, the problem is that in the UDT the column is maintaining diferent object types (invoices, credit memos, purchase invoices, etc.). Do you know how to do it?

    All the Best!

    Add comment
    10|10000 characters needed characters exceeded