on 05-25-2006 4:06 PM
Hi,
How do we get the newly added DocEntry of a UDO when ActionSuccess = True?
I am using 2004B and VB. Your input is urgently needed. Thanks.
Hi CK Chue
I know that this works for journals,docs and so on. Not sure for UDO, but it is worth a try.
Dim Str as String
oCompany.GetNewObjectCode(Str)
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use this:
Dim NewDocEntry as Integer
oCompany.GetNewObjectKey(NewDocEntry)
or
Dim NewDocNum as Integer
oCompany.GetNewObjectCode(NewDocNum)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you could create a query to find the highest number in the UDO.
For example
select max(docnum) from UDOTable
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
9 | |
9 | |
5 | |
4 | |
3 | |
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.