Skip to Content
0
Former Member
Jul 18, 2007 at 11:02 AM

Choose from list in matrix

34 Views

Hi all,

I need help on Choose from list for matrix column.

When I press tab, choose from list(Item master) is displaying and data is filling in matrix and when I try add the row thru' add row button event, data automatically fills in which the items available in first row instead of another item. Let me know the sample set of codes of Choose from list for matrix. I am using SBO 2005 B and dot net 2005.

I have created a choose from list in Screen painter itself and I have done all neccessaries.

Then I' ve added this code in the application

oItem = Oform.Items.Item("mat")

Omatrix = oItem.Specific

oColumns = Omatrix.Columns

colicode = oColumns.Item("colicode")

Oform.DataSources.UserDataSources.Add("EditDS2", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)

colicode.DataBind.SetBound(True, "", "EditDS2")

in choose from list Item event

Dim val2 As String

val2 = oDataTable.GetValue(0, 0)

If (pVal.ItemUID = "mat") And (pVal.ColUID = "colicode") Then

oForm.DataSources.UserDataSources.Item("EditDS2").ValueEx = val2

Omatrix.LoadFromDataSource()

End If

Thanks & Regards,

Venkatesan G.