ISharing.ImportSharedEstimate Method

Imports a child estimate into the current parent estimate.
Sub ImportSharedEstimate( _ 
ByVal childEstimateFile As String, _ 
ByVal syncMode As SharingUniqueFieldsSynchroMode, _ 
ByVal importOptions As ChildEstimateImportOptions
)
This language is not supported or no code example is available.
void ImportSharedEstimate( 
string childEstimateFile
SharingUniqueFieldsSynchroMode syncMode
ChildEstimateImportOptions importOptions 
)
This language is not supported or no code example is available.

Parameters

childEstimateFile
string

The full path to the child estimate to be imported.

syncMode
SharingUniqueFieldsSynchroMode

Specifies the synchronization mode for synchronizing unique fields.

importOptions
ChildEstimateImportOptions

The options that control importing of a child estimate. They describe how to handle some problematic situations.

Exception type Condition

QdvApiException

An error occurred. Especially the cases with the following QdvApiException.Id values:

Exception

Any other error occurred.

Remarks
 

With importOptions parameter, you can, among other things, allow to continue importing in non transparency mode, if the currencies of the parent and child estimates are different.

In such a case, you must ensure that exchanged columns are provided as parent currency by the child (the child takes the exchange risk) or that your estimate contains some logic to convert amounts provided in the child currency into the parent currency (you take the exchange risk). If the ChildEstimateImportOptions.ContinueOnCurrencyMismatchInNonTransparent is set to false, then the QdvApiException is thrown with the QdvApiException.Id value set to ErrorIDs.SharingImportCurrencyMismatch. In case of transparent mode, the exception is always thrown.

Version
 
Available since QDV 7.18.696.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition