12-27-2016 9:44 PM - edited 02-03-2024 6:45 PM
I am trying to save data in database using user table but i am unable to catch fields for storing data.
I am Creating Form Without UDO and add() ,Update() data using userTable. and know i try to navigate data?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see, master data type needs to be bound to UDO and add the values from General Data Service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Edy Simon .Yes i use this, Actually i found. it my table is master data type and solution is to create a table with SAPbobsCOM.BoUTBTableType.bott_NoObject.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Quoted from SAP Business One Help File RefDI.chm
Private Sub Add_Data_Click()
Dim oUserTable As SAPbobsCOM.UserTable
Set oUserTable = oCompany.UserTables.Item(1)
'Set default, mandatory fields
oUserTable.Code = "A"
oUserTable.Name = "Albert"
'Set user field
oUserTable.UserFields.Fields.Item("U_AlbUDF").Value = "1"
oUserTable.Add
If ret <> 0 Then
oCompany.GetLastError ret, Str
MsgBox Str
Else
MsgBox "Value to field: '" & oUserTable.UserFields.Fields.Item("U_AlbUDF").Name & "' was updated successfuly to " & oUserTable.TableName & " Table"
End If
End Sub
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.