IWbsFieldsRepository.DeleteField Method
Sub DeleteField( _
ByVal fieldNumericID As Integer _
)
This language is not supported or no code example is available.
Parameters
- fieldNumericID
- int
The IWbsField.NumericID of the field to be removed.
Exception type | Condition |
---|---|
|
If the fieldNumericID belongs to a master breakdown field, then also
its child discrete value fields are deleted (they are stored in IWbsFieldMasterBreakdownInfo.BreakdownByDiscreteValues).
Similarly, if the fieldNumericID belongs to a breakdown discrete value field, then this field
will be removed from the IWbsFieldMasterBreakdownInfo.BreakdownByDiscreteValues collection of its master field.
Also non-Admin is allowed to define the fields with this method.
This method doesn't refresh the UI with the changes. You need to call RepaintWbsWithChanges method after you have finished all your changes in this fields repository. Or you can call slower IEstimate.CheckAndRepaint.
Available since QDV 7.18.655.