cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix LinkedButton how to link to different object?

Former Member
0 Kudos

I have a matrix , i would like to like specific colum Say column1 to

multiple object, meaning every row will link to different object, is that possible?

I know how to link a coulmn to a Linked object


oColumn = oColumns.Item("column1")
oLink = oColumn.ExtendedObject
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts

what i want is based on certail condition

row1, coulumn1 link to lf_Invoice

row2, coulumn1 link to lf_PurchaseInvoice

Is that possibel?

Accepted Solutions (1)

Accepted Solutions (1)

former_member185703
Active Contributor
0 Kudos

Hi,

No, that's not possible:

1 column = 1 object type.

However, you could set the object type to "lf_None" and then handle the click on the linked button in your code (need a workaround to open the form for the corresponding object...)

HTH,

Frank

Answers (1)

Answers (1)

Former Member
0 Kudos

i think u can use Item Event Before Action=True to solve it

code below is what i'm using


If pVal.ColUID.Equals("DocNum") And pVal.EventType = SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED Then
         sObjectType = oGrid.DataTable.Columns.Item("ObjType").Cells.Item(pVal.Row).Value
         oEditTextColumn = oGrid.Columns.Item("DocNum")
         oEditTextColumn.LinkedObjectType = sObjectType
End If