on 11-20-2009 3:56 PM
Hi,
I added a user field in the form "Employee Master Data." Then i linked a Choose from List to this user field for the selection of Business Partners.
When I try to set the selected value through the DBDataSource I get the error that it isn't a user-defined object.
Usually i do:
Private Sub ChooseFromListEvents(ByVal pVal As SAPbouiCOM.ChooseFromListEvent, ByRef BubbleEvent As Boolean)
Dim oFrm As SAPbouiCOM.Form = SBO_Application.Forms.Item(pVal.FormUID)
If pVal.BeforeAction = True Then
' *** BEFORE ACTION ***
Else
' *** AFTER ACTION ***
Select Case pVal.ItemUID
Case "1000003", "1000014"
If Not pVal.SelectedObjects Is Nothing Then
oFrm.DataSources.DBDataSources.Item(0).SetValue("U_CodeAuto", 0, pVal.SelectedObjects.GetValue(0, 0))
oFrm.DataSources.DBDataSources.Item(0).SetValue("U_NameAuto", 0, pVal.SelectedObjects.GetValue(1, 0))
oFrm.Update()
End If
End Select
End If
End Sub
but in this case does not work.
Hello,
Try to set your textbox value or string not the dbdatasource object value.
Regards,
J-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gianluca,
try to eliminate the line
oFrm.Update()
and try out, it should work.
Regards
shiva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.