Skip to Content
0
Former Member
Dec 10, 2011 at 08:22 AM

[HELP]SDK UI

39 Views

I'm having problem with Grid binding.

I'm trying to fill my grid using this code. Please help.

Dim oDataTable As SAPbouiCOM.DataTable
 Dim myDg As SAPbouiCOM.Grid = oForm.Items.Item("myDg").Specific

 oDataTable = oForm.DataSources.DataTables.Add("myDg")
'oDataTable = oForm.DataSources.DataTables.Item("myDg") 
 oDataTable.ExecuteQuery("SELECT dbName [Subsidiary Code], cmpName [Subsidiary Name] FROM [SBO-COMMON].dbo.SRGC")

When I run the program its say the Data Table - duplicate Unique Id.

How can I fix this?

Edited by: hikaru1207 on Dec 10, 2011 11:54 AM

Edited by: hikaru1207 on Dec 10, 2011 12:01 PM