cancel
Showing results for 
Search instead for 
Did you mean: 

Activate linkedbutton in a matrix through code?

rasmuswulff_jensen
Active Contributor
0 Kudos

Hi... Anyone know if it is possible to activate a linked button in a matrix through code?

Observations:

1 - In normal linked buttons i just use the click method... works fine

2 - In matrix the columns click method just focus the cell

3 - The colums extended object (Linked Button does not have a click event)

Anyone know how this can be done at all?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

There is a 'SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED' event. which is used for Matrix Linked Button Press Event.

HTH

With Regards

B.Ravi Shankar

rasmuswulff_jensen
Active Contributor
0 Kudos

Yes I know, but that is only used for catching the event... Not initiating it

Former Member
0 Kudos

hi,

The Click event of Cell Item with click type 'SAPbouiCOM.BoCellClickType.ct_Linked' Activates Linked Press event.

oForm = oApplication.Forms.Item(FormUID)

oMatrix = oForm.Items.Item("7").Specific oMatrix.Columns.Item(<colid>).Cells.Item(<rowno>).Click(SAPbouiCOM.BoCellClickType.ct_Linked)

HTH

With Regards

B.Ravi Shankar

former_member184566
Active Contributor
0 Kudos

Hi Rasmus

It is not possible to do it all through code, you have to amend the XML doc produced from screen painter so that the matrix column is of the linked button type. Then in code you assign the linked button to that column.

Hope this helps

rasmuswulff_jensen
Active Contributor
0 Kudos

Ravi: Thanks Missed that one...

Louis: It's not correct that not everything can be done through code... Personally I don't use the screenpainter (Not nearly complete enough to be used effectively)...

former_member184566
Active Contributor
0 Kudos

hey learn something new everyday. Thanks Ravi,Curtis.

Answers (0)