on 2007 Jul 18 12:02 PM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
8 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.