on 10-30-2007 5:47 PM
The GetObjectCode returns the DocEntry. is there anyway I can get the newly added DocNum ? Because it returns 0
if (Document.Add() != 0)
{
oCompany.GetLastError(out ErrorCode, out ErrorMsg);
rtfResult.Text += (FortSum.General.IsFrench ? "Fichier : " : "File : ") + SelectedFile.Trim() + ", " + ErrorCode.ToString() + " " + ErrorMsg + Environment.NewLine;
}
else
{
Need the newly added DocNum !
//rtfResult.Text += "Document #" + ObjectCode + (FortSum.General.IsFrench ? " créé avec succès..." : " created successfuly...");
rtfResult.Text += "Document " + (FortSum.General.IsFrench ? " créé avec succès..." : " created successfuly...");
MoveToBackup();
Hi Marc,
There's no standard way to get the DocNum. You'll have to query the particular object table or use the GetByKey(newDocEntry) method of the Document to get the DocNum as a property.
HTH,
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
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.