cancel
Showing results for 
Search instead for 
Did you mean: 

Choose from list in matrix

Former Member
0 Kudos
93

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.

Accepted Solutions (1)

Accepted Solutions (1)

Eneveux
Product and Topic Expert
Product and Topic Expert
0 Kudos

Venkatesan,

If you search this forum on for "matrix choose from list", you will find many posts that may assist you such as ...

HTH,

Eddy

Former Member
0 Kudos

Hi,

Thanks for your immediate reply.

Already I' ve tried to download it (Add-On Technical Demo v2 for SAP Business One 2005). But it is not downloading properly. Error is coming while download.

Please give me some other solution please.

Thanks & Regards,

Venkatesan G.

Answers (0)