on ‎2023 Dec 06 8:22 PM
Hi,
I use below code to insert one recort in to User Defined Table (No Object) with B1 SDK
oUserTable = vCmp.UserTables.Item("BIRIMLER")
oUserTable.Code = "2"
oUserTable.Name = "Deneme2"
oUserTable.UserFields.Fields.Item("U_stok_kod").Value = "Deneme"
oUserTable.UserFields.Fields.Item("U_stok_birim").Value = "Deneme2"
oUserTable.UserFields.Fields.Item("U_ikinci_birim").Value = "Deneme3"
oUserTable.UserFields.Fields.Item("U_katsayi").Value = "333"
retval = oUserTable.Add()
I think when you create User Defined Table, Code and Name values has beem automaticly created.
How can arrange Code field autoincrement value? Because Code field is not important for me. But I need it to get exact line information.
Can I assign it auto increment value?
Regards,
Mucip:)
Request clarification before answering.
Hi mucipilbuga,
You can use the table of No Object with Auto. Increment type.
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 26 | |
| 14 | |
| 10 | |
| 9 | |
| 5 | |
| 5 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.