ITask.GetFieldValue Method

Gets the content of a task's field cell directly from a workbook.
Function GetFieldValue( _ 
ByVal fieldMnemonic As String, _ 
ByVal readWhereForBranches As PositionInWbsBranch
) As Object
This language is not supported or no code example is available.
object GetFieldValue( 
string fieldMnemonic
PositionInWbsBranch readWhereForBranches 
)
This language is not supported or no code example is available.

Parameters

fieldMnemonic
string

The unique identifier (mnemonic) of the WBS field.

readWhereForBranches
PositionInWbsBranch

When this instance is a WBS branch, you can tell QDV if you want to read from top, or from bottom. When set to Auto (default), it always attempts to read from bottom. When the bottom contains a formula, it reads from top.

Return Value

object

The content of the cell as an object. Can be either numeric or text.

Exception type Condition

QdvApiException

A problem occurred.

Remarks
 
This method reads data from workbook, not from database. This means it can get values which are calculated by the WBS workbook. Use GetFieldsValuesFromDb method to read directly from database.

You cannot get blob values, i.e. embedded files, with this method. If you want to get the values of the fields that have their IWbsField.DataType set to WbsFieldDataType.AnyFile, such as "_Document" or "_Workbook", you need to call GetBlob 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