cancel
Showing results for 
Search instead for 
Did you mean: 

Grid and LinkedButton ??

Former Member
0 Kudos

Hello,

can i insert a linkedbutton in a grid column (not a matrix) ?

Thank for your answer... and your sample code..

Laurent.

Message was edited by: LAURENT TESTA

Accepted Solutions (0)

Answers (1)

Answers (1)

AdKerremans
Active Contributor
0 Kudos

Hello Laurent,

Can you share the answer (and sample code) with us

Thanks

Ad

Former Member
0 Kudos

Hi Ad !!

After long long long long search.... i find !!!

Here is my code :

' DataSource

objForm.DataSources.DataTables.Add("dtt")

in_Form.DataSources.DataTables.Item(0).ExecuteQuery("select DocNum, PostDate, UserSign, Warehouse, PlannedQty from OWOR")

' Grid

oItem = objForm.Items.Add("grid", oFormItemTypes.it_GRID)

oItem.Left = 20

oItem.Top = 90

oItem.Width = 550

oItem.Height = 300

oGrid = objItem.Specific

objGrid.DataTable = objForm.DataSources.DataTables.Item("dtt")

'

' LinkedButton on "DocNum" column

Dim objEdtColumn As SAPbouiCOM.EditTextColumn

objGrid.Columns.Item("DocNum").Type = SAPbouiCOM.BoGridColumnType.gct_EditText

objEdtColumn = objGridCtl.Columns.Item("DocNum")

objEdtColumn.LinkedObjectType = SAPbouiCOM.BoLinkedObject.lf_ProductionOrder

Bye !