|
Inserts an entry proposal in the document. |
|
|
void InsertEntProp ( VARIANT vCode ) |
|
|
Parameters | vCode | [in] A VARIANT stating the code of the entry proposal you want to insert. The type of this VARIANT determines the action to be taken by the SDK:
|
Subtype |
|
Action |
|
VT_EMPTY |
|
If an entry proposal code for the corresponding document type is found in the customer card, this value is used. If no proposal code is found in the customer card, the entry proposal for a blank code is used if it exists, otherwise no details are added. |
|
BSTR (VT_BSTR) |
|
The given value is used if it exists, otherwise an exception is thrown. |
| | Remarks |
| The details of the entry proposal are added after the existing details. |
|
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Insert an entry proposal with code 'PRP01' in the document.
int iNumDets;
pSales->PrepareDocument (paInsert);
// Fill the necessary header data
iNumDets = pSales->GetNumDetails ();
pSales->InsertEntProp ("PRP01");
for (int iNew = pSales->GetNumDetails (); iNew > iNumDets; iNew--)
{
// Add necessary data to the details of the proposal
}
pSales->WriteDocument (rmFullReport);
|
|
|
C# |
|
// Insert an entry proposal with code 'PRP01' in the document.
int iNumDets;
oSales.PrepareDocument (ePrepareAction.paInsert);
// Fill the necessary header data
iNumDets = oSales.GetNumDetails ();
oSales.InsertEntProp ("PRP01");
for (int iNew = oSales.GetNumDetails (); iNew > iNumDets; iNew--)
{
// Add necessary data to the details of the proposal
}
oSales.WriteDocument (eReportMode.rmFullReport);
|
|
|
VBS |
|
' Insert an entry proposal with code 'PRP01' in the document.
Dim iNumDets, iNew
Call oSales.PrepareDocument(paInsert)
' Fill the necessary header data
iNumDets = oSales.GetNumDetails()
Call oSales.InsertEntProp("PRP01")
For iNew = oSales.GetNumDetails() To iNumDets
' Add necessary data to the details of the proposal
Next
Call oSales.WriteDocument(rmFullReport)
|
|
|
VB.NET |
|
' Insert an entry proposal with code 'PRP01' in the document.
Dim sNumDets, sNew As Short
oSales.PrepareDocument(ePrepareAction.paInsert)
' Fill the necessary header data
sNumDets = oSales.GetNumDetails()
oSales.InsertEntProp("PRP01")
For sNew = oSales.GetNumDetails() To sNumDets
' Add necessary data to the details of the proposal
Next
oSales.WriteDocument(eReportMode.rmFullReport)
|
|