UpdateObjectsState;
UpdateObjectsState();
The UpdateObjectsState method updates display of calculation chain activity state.
The method can be relevant for use if calculation chain states are being modified in the code using the IEtlTask.ActiveChain method.
Executing the example requires a form with a button named Button1, the UiEtlObject component named UiEtlObject1 and the EtlBox component named EtlBox1. UiEtlObject1 is selected as a data source for EtlBox1. Any ETL task is connected to UiEtlObject1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Task: IEtlTask;
Begin
Task := UiEtlObject1.EtlTask;
Task.ActiveChain(Task.Links.Item(0).ConnCompId) := False;
EtlBox1.UpdateObjectsState;
End Sub Button1OnClick;
Clicking the button excludes the chain including the first link between the objects from the general list of executable chains. After that the visual formatting of all ETL task objects will be updated.
See also: