|
Inserts a Purchase Document. |
|
|
void Insert ( enum eInsertMode eInsertMode ) |
|
|
Parameters | eInsertMode | [in] A value of the 'eInsertMode' enumeration. | | Remarks |
| A document can only be inserted directly using the dialog (eInsertMode = imDialog or eInsertMode = imDialogFromData), other modes are not supported. If you want to insert a document without user interface, you can use the Import method or the PrepareDocument method. For more information, see 'Handling accounting documents using the SDK'. |
|
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Insert a new record using the dialog, initially filled with the default values
pPurch->Init ();
pPurch->Insert (imDialog);
|
|
|
C# |
|
// Insert a new record using the dialog, initially filled with the default values
oPurch.Init ();
oPurch.Insert (eInsertMode.imDialog);
|
|
|
VBS |
|
' Insert a new record using the dialog, initially filled with the default values
Call oPurch.Init()
Call oPurch.Insert(imDialog)
|
|
|
VB.NET |
|
' Insert a new record using the dialog, initially filled with the default values
oPurch.Init()
oPurch.Insert(eInsertMode.imDialog)
|
|