cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic LinkedObject

former_member306083
Participant
0 Kudos

Hi, I have a matrix with, A/R inovices, A/P invoices, Credit memos, etc, etc. I´m maintain the DocEntry and the DocNum. I need to navigate to the corresponding SBO form for each specific object type.

Do you know how can I do that with a LinkedButton, RigthClick or any?

Best regards!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

If I've understood correctly, you have one column (Linked object) which may point to different system forms, right?

In this case you can use the matrix's LinkPressedAfter event like:

private void Matrix0_LinkPressedAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)
        {
            if(pVal.ColUID == "YOUR_COLUMN_ID")
            {
                //Do your stuff here
            }
        }

And you can use OpenForm method to open the desired form

former_member306083
Participant
0 Kudos

Thank you Rudá! can you share a OpenForm sample, I having problems with this!

All the best!

former_member306083
Participant
0 Kudos

Thank you! I could realize how. All the best

Answers (1)

Answers (1)

former_member306083
Participant
0 Kudos

Hello Rudá, do you know how to set the column to show the row arrow? I doing this:

oColumn = oColumns.Add("DocEntry", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON);
...
oLink = ((SAPbouiCOM.LinkedButton)(oColumn.ExtendedObject));
oLink.LinkedObject = ????

if I assign a BoLinkedObject, its execute both forms, the setted in the oLink and the executed in the OpenForm method

Best Regards!