on 04-05-2006 8:59 AM
Hi,
I have created a ChooseFromList and I would like to link it with a user table.
I succeeded with Business Partners (table OCRD, ObjectType=2 and Alias=CardCode) but is it possible with a user table?
If yes, what are the good properties?
Thank you,
Thibault
Hi Thibault,
As far as I can see in the SDK Help, the choose from list only works with Objects. So you need to define your usertable as a User Defined Object (UDO). You'll find a tutorial in the SDK help wich describes how to add a UDO. Below a snippet from the SDK Help, the ChooseFromListCreationParams Object.
<b>Public Property: ObjectType</b>
Returns or sets a string specifying the type of object on which the system performs the query.
For example, "2" will query the Business Partners object. For a list of object types, see BoLinkedObject. <b><i>You can also query UDO objects.</i></b>
Hope it helps,
Rowdy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
My ChooseFromList is almost perfect.
However, I would like that the description of the item I choose in the CFL appears instead of the code.
I have tried something like that :
If (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST) Then
If (pVal.ItemUID = "Bouton" Or oEdit.String = "*" Or CStr(pVal.CharPressed) = "0") Then
Dim oDataTable As SAPbouiCOM.DataTable
oDataTable = pVal.SelectedObjects
Dim val As String
Try
val = oDataTable.GetValue("Name", 0)
oEdit.String = val
Catch err As Exception
End Try
End If
End If
But it doesn't works well, another form opens itself and the description doesn't appear.
Any idea of my problem?
Thanks
Thibault
User | Count |
---|---|
107 | |
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.