Consultor Eletrônico



Kbase P26610: How to exit from a container writing code on a SmartViewer.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

GOAL:

How to exit from a container writing code on a SmartViewer.

FACT(s) (Environment):

Progress 9.x

FIX:

Run ExitObject in its container procedure (which in your case is a smartFrame).
You can get the container handle with DYNAMIC-FUNNCTION('GetContainerSource').
Example: Put an "Exit" button on Smart viewer and write the following in its "choose" trigger:

DEF VAR h AS HANDLE.
h = DYNAMIC-FUNCTION('GetContainerSource':U).
RUN exitObject IN h.