Skip to Content
Former Member
Sep 06, 2006 at 10:26 AM

How can I attach link button to y matrix for UDO


Hello All,

I am trying to use link button in matrix to get records from User defined table which is a document object of UDO. This is my code :

'// Add a column for BP Card Code

oColumn = oColumns.Add("emp_no", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)

oColumn.TitleObject.Caption = "Visit No."

oColumn.Width = 40

oColumn.Editable = True

'// Link the column to the employee details user defined table

oLink = oColumn.ExtendedObject

oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_UserDefinedObject

oLink.LinkedObjectType = "EMP_UDO"

here "EMP_UDO" is my UDO name. But still it is giving me error. Can someone help me regarding this matter?