IWbsFieldsRepository.UpdateWithChangedMnemonics Method

Updates WBS fields when mnemonics of some WBS fields were changed.
Function UpdateWithChangedMnemonics( _ 
ByVal changedMenmonics As IDictionary(Of String, String) _ 
) As Boolean
This language is not supported or no code example is available.
bool UpdateWithChangedMnemonics( 
IDictionary<string, string> changedMenmonics 
)
This language is not supported or no code example is available.

Parameters

changedMenmonics
IDictionary<string, string>

Changed mnemonics. The key is an old mnemonic, the value is a new mnemonic.

Return Value

bool

true if any WBS field was modified by this method.

Remarks
 

This method should be called when a mnemonic was changed for a WBS field(s).

A WBS field references other WBS fields with their mnemonics on several places. All those references need to be updated when a mnemonic was changed.

  • Formula and conditional formula. Other fields are referenced as [mnemonic] in formulas.
  • Progress field. Other fields are referenced by mnemonic in IWbsField.ProgressField property.

After the fields are updated (the method returned true), any existing instances of IWbsField, that were retrieved before, are no longer valid. This method automatically calls the Reload method to refresh the repository. So you need to get the fields from the repository again, e.g. with GetAllFields, to have the up to date data.

Version
 
Available since QDV 7.18.655.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition