cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix and Link Button

Former Member
0 Kudos

Hi there,

I know this topic had been discussed a number of time but non of the solution work for me.

I want to know how to create a link button on a matrix. Just like the one in the Sales Order- item matrix, where

you can click on the link button beside the item code and the item master data form will pop out.

Only want to know matrix not normal text field where putting a link button is so easy.

I'm using 6.5 SDK and please... don't provide any 2004 solution... cos it's not workable on 6.5?

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

OK if you want to add linkbutton to the matrix cell just use following syntax:

Set oMatrix1Col = oMatrix1Cols.Add("Col1", it_LINKED_BUTTON)

but as I said before the property that will allow you to connect objects to this button is available in 2004 A.

Regards,

Pawel

Former Member
0 Kudos

Without doing any item.linkto , you won't be about to see any link button on the matrix cell even you had declare the column as linked button type. Thus, I don't see why this type should even be allow in the Matrix as you can't even link a thing for SBO 6.5? Funny...

Anyway, I use a double click event on a column to act as a link button... Here's my code:

Case SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK

Select Case pVal.ItemUID

Case "PMatrix"

If pVal.ColUID = "PerLink" Then

otext = PercentMatrix.Columns.Item &_

("PerInv").Cells.Item(pVal.Row).Specific

txtPerLink.String = otext.Value

ProINVForm.Items.Item("PerLink1").Click &_

(SAPbouiCOM.BoCellClickType.ct_Linked)

End If

End Select

Note: txtPerLink is a textbox to display invoice number

"PerLink1" is a Link button created when my form

is created.

Thus, when a double-click event is detected on column "PerLink", it will detect which row also. Then read in the invoice number from the particular row and put into EditText: "txtPerLink". Then, force a link button click.

Message was edited by: Erik Tang

Former Member
0 Kudos

Ah.... I yet to have 2004 sdk and it's program....

I had done a workaround... but still unable to show a actually link button on a matrix cell... I can only capture a double click event and do a link button click so my target form will pop out...

Former Member
0 Kudos

Hi,

as far as you know it is possible to create a link button on the matrix in 6.5 but linking it to an object is possible only for 2004 A.

Best regards