ITask.SetFieldsValuesToDb Method

Writes values to several fields in this task. Provides a fast way to write directly to the database.
Sub SetFieldsValuesToDb( _ 
ByVal fieldsWithValues As Dictionary(Of String, Object) _ 
)
This language is not supported or no code example is available.
void SetFieldsValuesToDb( 
Dictionary<string, object> fieldsWithValues 
)
This language is not supported or no code example is available.

Parameters

fieldsWithValues
Dictionary<string, object>

The field values to be set. The key is the field mnemonic. The value is the field value, which is either a string, a number or a date.

Exception type Condition

QdvApiException

A problem occurred.

Remarks
 

Because this function writes directly and only to the database, it doesn't write anything to the WBS workbook. For this reason it requires a repaint of the WBS workbook which must be called at the end of the execution of the calling macro. You must call the IEstimate.CheckAndRepaint method.

Calculated fields (those using formulas or being filled in from the minutes) cannot be written using this function.

You cannot set blob values, i.e. embedded files, with this method. If you want to set the values of the fields that have their IWbsField.DataType set to WbsFieldDataType.AnyFile, such as "_Document" or "_Workbook", you need to call StoreBlob method.

Version
 
Available since QDV 7.13.0001.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition