Consultor Eletrônico



Kbase P3364: When Running in the AppBuilder Subscribe Anywhere Code Runs Twice
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/11/2002
Solution ID: P3364

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

SUBSCRIBE ANYWHERE fires twice

CAUSE:

The procedure is running twice because multiple SmartObjects are subscribed using the subscribe anywhere statement (the running one and the instance used by the AppBuilder).  This only happens in development time and is caused by the way the AppBuilder works.

FIX:

To workaround the problem during development, add the following code prior to the SUBSCRIBE statement:


DEFINE VARIABLE cUIBMode AS CHAR.

{get UIBMode cUIBMode}.

IF cUIbMode <> 'Design' THEN
SUBSCRIBE event ANYWHERE.