Consultor Eletrônico



Kbase P10625: How to run a procedure on AppServer within an ADM2 applicati
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/17/2008
Status: Unverified

GOAL:

How to run a procedure on AppServer within an ADM2 application

FIX:

Create a internal procedure in the SDO. This proceure has to run on AppServer so check on db required check-box into Section Editor.
Lunch the external procedure from this internal procedure.
RUN procedure.p [PERSISTENT SET hProc] ( params ... ).
From the code running on the client side of the application call the internal procedure with:
DEF VAR hASSrv AS HANDLE.
hASSrv = DYNAMIC-FUNCTION( 'getASHandle' [IN h_SDO] ).
RUN internalProcedure IN hASSrv ( params ... ).