IManagementDatabaseEstimate.SetFieldValue Method
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 |
---|---|
Other problem occurred. |
|
The columnName is not a valid column name for this table. |
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.