Kbase P104070: Custom code may be fired multiple times when objects are used in a treeview.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/12/2005 |
|
Status: Unverified
FACT(s) (Environment):
Dynamics
SYMPTOM(s):
Visual objects have been customized
Multiple instances of the same object are used within a single Treeview
Customized code uses publish/subscribe to respond to events
Customized code is executed multiple times
CAUSE:
For performance reasons, the Treeview will not destroy and rebuild the various contained objects as nodes are navigated; they will merely be hidden.
These 'inactive' hidden objects will still respond to the named events.
FIX:
One can check if the object is visible in order to check if it's currently active.
The code required will be similar to the following:
DEFINE VARIABLE h AS HANDLE NO-UNDO.
{get containerHandle h}.
IF h:HIDDEN = FALSE AND h:VISIBLE = TRUE THEN DO:
/* launch independent container here */.
END.