cancel
Showing results for 
Search instead for 
Did you mean: 

System Form Matrix

Former Member
0 Kudos

Hi I'm new to all of this and I was wondering if someone could spell things out a little for me regarding System Forms. I'm trying to add a linked button to the matrix in sales order.

I'm coding in C#

when I try and get the matrix :

private SAPbouiCOM.Matrix oMatrix;

....

oMatrix = oForm.Items.Item("38").Specific;

I get the following error: Cannot implicitly convert type 'object' to 'SAPbouiCOM.Matrix'

I can't get passed this point to even have a go at trying to add a linked button. Any information would be greatly appreciated. Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

oItem = oForm.Items.Item("38");

oMatrix = ((SAPbouiCOM.Matrix)(oItem.Specific));

oColumns = oMatrix.Columns;

oColumn = oColumns.Item("11");

I did this and it seems to work. Now how do I add a linked button to this column?

AdKerremans
Active Contributor
0 Kudos

Hi Costas,

I don't know if it works on a system matrix, but you have to change the column type to linked_button.

column.Type = sapbouicom.BoFormItemTypes.it_LINKED_BUTTON

Regards

Ad

Former Member
0 Kudos

I think your right. Can it be done if I add a user defined column to the matrix?

AdKerremans
Active Contributor
0 Kudos

Hi Costas,

I only used linked buttons with my own matrices.

the quickest way to find out is to test it.

Regards

Ad