on ‎2006 Jun 19 9:55 AM
I have a UserTable related to a UserObject (DOCUMENT TYPE).
The UDO has manageSeries = tYes and i am able to see the correct document numbering in "Administration->System Init->Document Numbering".
When i try this code:
uTable = company.UserTables.Item("tblName")
uFields = uTable.UserFields.Fields
fields.Item("myMandatoryField1") = "XXX"
fields.Item("myMandatoryField2") = "YYY"
err = uTable.Add()
err is -4002 "To generate this document, first define the numbering series in the Administration module"
Why?!?!?
Request clarification before answering.
Error handling is described in two how-to sections in the SDK Help Center.
Go to DI API / How to ... / Handling errors and the same for UI API, you can
find there how to handle errors and a list of some of the errors returned by SDK.
SDK Help Center is part of the SDK product and can be downloaded from SDN
as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 43 | |
| 29 | |
| 18 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.