Use ChatGPT view
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
After installing, configuring and enabling the AI Coding Assistant feature, perform the following steps to view and use the ChatGPT View:
Examples: Use the ChaptGPT View
You can try the
following scenarios from ChatGPT for generating ABL code:
- Scenario 1—Enter the following query in the ChatGPT text chat:
Write an output to a file in ABL.ChatGPT provides the following response:DEFINE VARIABLE fileHandle AS HANDLE. DEFINE VARIABLE outputString AS CHARACTER. OUTPUT TO VALUE("output.txt"). PUT UNFORMATTED "Hello, World!" SKIP. OUTPUT CLOSE. - Scenario 2—Enter the following in the ChatGPT text chat:
Define two temp tables and a dataset using ABL.ChatGPT provides the following response:DEFINE TEMP-TABLE tt-table1 FIELD field1 AS CHARACTER FIELD field2 AS INTEGER INDEX field1 IS UNIQUE. DEFINE TEMP-TABLE tt-table2 FIELD field1 AS CHARACTER FIELD field2 AS DECIMAL. DEFINE DATASET ds-dataset FOR tt-table1, tt-table2. - Scenario 3—Copy and paste the following code to ChatGPT as input and ask it to
generate the comments for the
addAndDisplaySummethod.METHOD PUBLIC VOID addAndDisplaySum(INPUT i1 AS INTEGER, INPUT i2 AS INTEGER): DEFINE VARIABLE sum AS INTEGER NO-UNDO. sum = i1 + i2. MESSAGE "The sum of" i1 "and" i2 "is" sum VIEW-AS ALERT-BOX. END METHOD.ChatGPT provides the following response:/* * This method calculates the sum of two input integers and displays the result. * @param i1 The first integer input. * @param i2 The second integer input. */