Hi All !!!
I've got a linked button in a column within a matrix that shows number of documents for item transaction. (I get data from OINM table)
I've set it to link using the following code:
Protected Sub Link_OnPressed(ByVal pVaL As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)
If pVal.BeforeAction Then
If pVal.ColUID = enFC.mtxTrList.ColumnName.CreatedBy Then
Dim oLinkBt As SAPbouiCOM.LinkedButton
oLinkBt = enFC.mtxTrList.Base.Columns.Item(pVal.ColUID).ExtendedObject
Select Case enDs.dsTrList.Base.GetValue("TransTypeCode", pVal.Row - 1)
Case 13
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Invoice
Case 14
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_InvoiceCreditMemo
Case 15
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_DeliveryNotes
Case 16
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_DeliveryNotesReturns
Case 18
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_PurchaseInvoice
Case 19
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_PurchaseInvoiceCreditMemo
Case 20
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GoodsReceiptPO
Case 21
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GoodsReturns
Case 59
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GoodsReceipt
Case 60
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GoodsIssue
Case 67
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_StockTransfers
Case 69
oLinkBt.LinkedObject = ????????????????????
Case 162
oLinkBt.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_StockRevaluation
End Select
End If
End If
The problem I canu2019t set it to link to the Landed Cost Object
In SDK Help didnu2019t found LinkedObject for landed cost
Thanks
Best regards
Igor