Content deleted Content added
m →Code examples: line highlight |
|||
Line 18:
An EGL Program part is a generatable logic part with one entry point. Each Program part contains a main() function, which represents the logic that runs at program start up. A program can include other functions and can access functions that are outside of the program. The function main() can invoke those other functions. Program functions are composed of a set of EGL statements, variables, and constants.
<source lang="text" line highlight="5">
Program HelloWorld
Line 53:
<source lang="text">
record Employee type sqlRecord { tableNames =[["Employee"]], keyItems =[EMPNO]}▼
▲record Employee type sqlRecord { tableNames =[["Employee"]
EMPNUMBER string{ column = "EMPNO", maxLen = 6};
FIRSTNME string{ sqlVariableLen = yes, maxLen = 12};
Line 73 ⟶ 71:
An EGL Service part contains public functions meant to be accessed from other applications or systems. In this example, a service with two functions is defined.
<source lang="
package com.mycompany.services;
Line 104 ⟶ 102:
The main component of a Rich UI application is a Rich UI handler part. These parts are generated into JavaScript.
<source lang="
package com.mycompany.ui;
|