cancel
Showing results for 
Search instead for 
Did you mean: 

Converting LinkedButton field

Former Member
0 Kudos

Hi,

I have the following problem:

Private oEditText As SAPbouiCOM.EditText

Private oMatrix As SAPbouiCOM.Matrix

I am getting data from the matrix, but when I try

Set oEditText = oMatrix.Columns(1).Cells (pVal.Row).Specific

VB keeps telling me I have the wrong type.

I tried the solution from the post "Getting data from LinkedButton matrix cell", but can't get it to work; quite possibly because I'm new to VB.

How can I convert the data from LinkedButton field to EditText?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Instead of

Set oEditText = oMatrix.Columns(1).Cells (pVal.Row).Specific

Use

Set oEditText = oMatrix.Columns.Item(1).Cells.Item (pVal.Row).Specific

It may help,

Miki

Former Member
0 Kudos

Thank you Miklos,

Unfortunately I still get the type-mismatch.

My Matrix is on a standard 2004 Orderform.

From the posting I mentioned I gather that the type of the fields with a LinkedButton has changed.

The change of type is also mentioned in the new helpfile.

How to work with it seems to be omitted.

Former Member
0 Kudos

Interesting.

I use c# and SBO 2004 and my example works this way:

SAPbouiCOM.EditText itemCodeCol = (SAPbouiCOM.EditText)myMatrixItem.Matrix.Columns.Item(1).Cells.Item(1).Specific;

I'm confused and do not understand what's going here.

Take care,

Miki

Former Member
0 Kudos

It confuses me as well.

If I do

Set oEditText = oMatrix.Columns(0).Cells(pVal.Row).Specific

I am simply getting the linenumber, as is to be expected.

So that works; I can also read other cells in the matrix, except for the one I need. The one with a LinkedButton.

Cheers, Evert

former_member185703
Active Contributor
0 Kudos

Hi Evert,

What about using the DataSource behind that cell?

HTH,

Frank

Former Member
0 Kudos

Hi,

thanks to SAP:

oEditText = oMatrix.Columns.Item("1").Cells.Item(pVal.Row).Specific

works

Apparently the quotes mattered..

Cheers,

Evert

Answers (0)