Kbase P122742: 4GL/ABL: How to start a new batch 4GL/ABL client session using 4GL/ABL?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/15/2009 |
|
Status: Verified
GOAL:
4GL/ABL: How to start a new batch 4GL/ABL client session using 4GL/ABL?
GOAL:
How to launch another a batch 4GL/ABL client session from the current 4GL/ABL client session?
GOAL:
How to run a 4GL/ABL procedure in a separate batch 4GL/ABL client session?
GOAL:
How to spawn a new batch 4GL/ABL client session from the current 4GL client session?
GOAL:
How to pass parameters to a 4GL/ABL client session from its startup command line?
GOAL:
How to pass parameters to a 4GL/ABL client session using the -param client session startup parameter?
FACT(s) (Environment):
All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
FIX:
The following code sample demonstrates how to spawn a new batch GUI 4GL/ABL client session from the current 4GL/ABL session. For character 4GL/ABL clients change the name of the client executable from prowin32.exe to _progres.exe:
DEFINE VARIABLE cCommandLine AS CHARACTER NO-UNDO.
ASSIGN
cCommandLine = 'C:\Progress91E\bin\prowin32.exe sports2000 -b -p C:\WRK91E\SomeReport.p'.
OS-COMMAND SILENT VALUE(cCommandLine).
The following code sample shows how to pass parameters to a 4GL/ABL client session from its startup command line using the -param client session startup parameter. The 4GL/ABL client session can access these parameters using the SESSION:PARAMETER attribute:
DEFINE VARIABLE cCommandLine AS CHARACTER NO-UNDO.
ASSIGN
cCommandLine = 'C:\Progress91E\bin\prowin32.exe sports2000 -param "Customer, CustNum, Name, Balance, Where Balance > 1000" -b -p C:\WRK91E\DynamicReport.p'.
OS-COMMAND NO-WAIT NO-CONSOLE VALUE(cCommandLine).