ICallingContext.Refresh Method

Refreshes this calling context. This means that all relevant property values are updated.
Sub Refresh()
This language is not supported or no code example is available.
void Refresh()
This language is not supported or no code example is available.
Exception type Condition

NotSupportedException

If refreshing of this calling context is not supported or doesn't make sense. Refreshing of an estimate context is always guaranteed, for example.

Remarks
 
A calling context is created, initialized and passed to a macro, when the macro is started. Normally, it contains the UI status and user selection which doesn't change during the macro execution. However, there may be cases when the user can interact with QDV and the macro needs to know the changed context. For example, the macro opens a non-modal form, in which case the user can get back to QDV, select a different tab, row or column. Calling this method will allow the macro the get the new selection.

The following properties are never refreshed with this method: ICommonCallingContext.CallingEventName, ICommonCallingContext.IsFromEventMacro, ICommonCallingContext.IsForeignMacro, ICommonCallingContext.MustCancel, ICommonCallingContext.UserDefinedObject, QdvManager.

Version
 
Available since QDV 7.23.1042.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition