cancel
Showing results for 
Search instead for 
Did you mean: 

ChooseList value is not getting saved in the UDO

Former Member
0 Kudos
42

Dear Friends,

I am assigning a Chooselist to my EditText Control and selecting the value from the Chooselist Screen into the EditText. But this value is not being saved to the UDO Column in the table. I have mapped the EditText to the proper column of the UDO. Please let me know where I am making a mistake.

Regards,

Noor hussain

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved

Former Member
0 Kudos

can you provide some code sample that how you are getting values from choose from list in EditText.

Regards

Rupinder

Former Member
0 Kudos

Dear Rupinder,

My code is as below. But the value after choosing is appearing in the edit text but not being saved to UDO Column.

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then

Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent

oCFLEvento = pVal

Dim sCFL_ID As String

sCFL_ID = oCFLEvento.ChooseFromListUID

Dim oCFL As SAPbouiCOM.ChooseFromList

oCFL = oForm.ChooseFromLists.Item(sCFL_ID)

If oCFLEvento.BeforeAction = False Then

Dim oDataTable As SAPbouiCOM.DataTable

oDataTable = oCFLEvento.SelectedObjects

Dim val As String

Try

val = oDataTable.GetValue(0, 0)

Catch ex As Exception

End Try

If (pVal.ItemUID = "txtGRNNo") Then

oForm.DataSources.UserDataSources.Item("UDCFL").Value = val

End If

End If

End If

Regards,

Noor

Former Member
0 Kudos

Dear Noor

Your code seems to be ok..i dnt knw if there is some problem with you XML.

Try the following Code once

Dim strUid As String = CFLEvent.ChooseFromListUID

Me.oCflEventTo = Me.CFL(strUid)

If pVal.ItemUID = "txtGRNNo" And strUid = "CFL_2" Then

Me.oDBDataSource.SetValue("U_UDCFL", (oDBDataSource.Size - 1), Conversion.Str(Me.CFLEvent.SelectedObjects.GetValue(0, 0)))

End If

Regards

Rupinder

Former Member
0 Kudos

Dear rupinder

I am getting the value in the EditTextBox of my form after choosing the value. But When I am saving it to Database table by clicking on Add button it is not being saved in the table column, rest all the values are being saved.

Noor

Former Member
0 Kudos

Can you send the XML file on my MailId that i can check that.

Rupinder

Former Member
0 Kudos

Ok, please give me your mail

Noor

Former Member
0 Kudos

can you post your xml file code here?

Regards

Former Member
0 Kudos

Dear Rupinder,

Thanx a lot for your post. i have rectified this problem, there was some mistake in my xml.

regards,

Noor