Cheatography
https://cheatography.com
A cheat sheet for Progress OpenEdge (4GL)
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Index declaration
INDEX indexName [IS UNIQUE PRIMARY] fieldName |
Finding a record in a temp-table
FIND [FIRST | LAST | NEXT | PREV] <tt-name> [where <criteria>] NO-ERROR. |
Check availability of record
IF AVAILABLE (<tt-name>) then <statement> |
Iterating using queries
1.Create, prepare, and open the query object. 2.Perform query navigation. 3.Close the query and delete the query object. |
create query <query-handle>. |
<query-handle>:add-buffer(buffer <tt-handle>). |
<query-handle>:query-prepare(<for-each-string>). |
<query-handle>:query-open(). |
Query iteration through related temp-tables
CREATE QUERY <query-name> |
<query-name>:ADD-BUFFER(BUFFER tt1:HANDLE). |
<query-name>:ADD-BUFFER(BUFFER tt2:HANDLE). |
<query-name>:QUERY-PREPARE("FOR EACH TT1, EACH TT2 WHERE") |
<query-name>:QUERY-OPEN |
Copying specific data from static to dynamic
sTTHandle = sTT:DEFAULT-BUFFER-HANDLE |
(s = static) |
dynTTHandle = dynTT:DEFAULT-BUFFER-HANDLE |
FOR EACH sTT where |
(dyn = dynamic) |
dynTTHandle:BUFFER-CREATE |
dynTTHandle:BUFFER-COPY(sTTHandle) |
Deleting a dynamic temp-table
DELETE OBJECT dynTTHandle |
Credentials settings for PASOE
Window -> Preferences -> Progress OpenEdge -> Server -> OpenEdge Explorer Connections -> Select connection -> Edit |
Connection Parameters
The URL of the server to which you areconnecting, where: scheme — Is either HTTPor HTTPS. host — Specifies the name or domainof the host. port — Specifies the port for the host connection that the instance is runningon. web-app-name — Specifies the OpenEdge ABL web application to connect with. If web-app-name is not specified, a connection tothe default OpenEdge ABL web application (ROOT) is used. transport — Specifies the ABL client (orOpen Client) transport. Must be apsv. |
|
|
|
|
|