on 07-23-2014 1:24 PM
Hello every body
i am newbie in SAP BUSINESS ONE and my question is simple: how can I add choose from list in text field to choose a business partner .I can't find a clear answer please helpppp.
hi,
To add choose from list to your form please review the following link :
http://wiki.scn.sap.com/wiki/display/B1/SAP+BusineUsing+Choose+from+List
After added the CFL to your form, do the following in item event:
Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
Dim cfl As SAPbouiCOM.ChooseFromListEvent
Dim dt As SAPbouiCOM.DataTable
cfl = pVal
dt = cfl.SelectedObjects
If Not (dt Is Nothing) Then
Try
objform.DataSources.UserDataSources.Item("UD_2").ValueEx = dt.GetValue("CardName", 0)
Catch ex As Exception
End Try
objform.DataSources.UserDataSources.Item("UD_1").ValueEx = dt.GetValue("CardCode", 0)
End If
Note: If you are using user data source in alies, the above code should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
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.