IManagementDatabaseEstimate.SetFieldValue Method

Writes a value to an estimate cell.
Overloads Sub SetFieldValue( _ 
ByVal columnName As String, _ 
ByVal newValue As Object
)
This language is not supported or no code example is available.
void SetFieldValue( 
string columnName
object newValue 
)
This language is not supported or no code example is available.

Parameters

columnName
string

The identifier (mnemonic) of the column to be edited.

newValue
object

The value to be written, can be a text, a number or a date. If set to null reference (Nothing in Visual Basic), the value of the field will be deleted.

If the field points to a row in the child table (specified in IManagementDatabaseColumnMapping.TableToShow), the value is the GUID string of the target row. You can then use the IManagementDatabaseCustomTable.GetRow method of the child table to get the target row. Then use the IManagementDatabaseTableRow.ToDisplayString method of that row to get the actual value for displaying.

Exception type Condition

QdvApiException

Other problem occurred.

ArgumentOutOfRangeException

The columnName is not a valid column name for this table.

Remarks
 

This method doesn't save the change in the database. It only sets the IManagementDatabaseTableRow.IsDirty flag and you need to call the IManagementDatabaseTableRow.Save method manually.

The native estimate fields can be better accessed from the properties, such as Title. But you can use also this method with their mnemonics.
Version
 
Available since QDV 7.14.520.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition