Kbase 16033: How to Get Procedure Handle / Run Procedures Inside Parent
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Verified
GOAL:
How to get procedure handle / run internal procedure inside parent SmartContainer from contained SmartObject(s).
For example, you may want to call an internal procedure in a container SmartWindow, from a contained SmartBrowser.
FACT(s) (Environment):
Progress ADM
Progress 8.x
FIX:
This is best done using the procedure handle of the SmartWindow. Below is a short example of how to get the handle.
To get the procedure handle of the SmartWindow which contains the SmartBrowser and use it to run an internal procedure from the SmartBrowser, study the following code.
DEFINE VARIABLE c-handle AS CHARACTER NO-UNDO.
DEFINE VARIABLE h-handle AS HANDLE NO-UNDO.
RUN get-link-handle IN adm-broker-hdl (THIS-PROCEDURE, "Container-Source":U, OUTPUT c-handle).
ASSIGN h-handle = WIDGET-HANDLE(c-handle).
RUN procedure-in-window-name IN h-handle [(parameters)].