Skip to main content

OnActivate Command versus OnShow Command

Use the OnActivate and OnShow multi-commands depending on when you want the event to occur: when a document is opened and every time the focus returns to the open document (OnActivate), or only when a document is opened (OnShow).

Overview

Choose between the OnActivate and OnShow multi-commands depending on when you want the event to occur: when a document is opened and every time the focus returns to the open document (OnActivate), or only when a document is opened (OnShow).

Note: The OnShow event is not a replacement for the OnActive event. Either or both of them can exist on a form, and you need to chose the appropriate event for the situation.

OnActivate

This button fires when a document is opened and continues to fire whenever the user returns the focus to the already opened document. 

Add the OnActivate button to a form

  1. In TIER Designer, add a button.
  2. For the Name and Caption, enter OnActivate.
  3. Double-click the button and add the [BeforeAction] and [AfterAction] multi-commands.

OnShow

This button improves the performance of TIER documents by firing only once when the document is first opened, instead of every time a document gets focus. 

Add the OnShow button to a form

  1. In TIER Designer, add a button.
  2. For the Name and Caption, enter OnShow.
  3. Double-click the button and add the [BeforeAction] and [AfterAction] multi-commands.