name

The name property specifies an identifier for variables that are otherwise unnamed. For example, migration from I4GL can result in EGL code like the following example:
OpenUI new Menu{ labelText= "MENU TEST", menuItems=[
   new MenuItem{name= "First", labelText= "First"}, 
   new MenuItem{name= "Second", labelText= "Second"}] }
   onEvent(MENU_ACTION:"First") 
      displayAtPosition(Message1, 1, 1);
   onEvent(MENU_ACTION:"Second") 
      displayAtPosition(Message2, 2, 1);
end // OpenUI

Without the name property, EGL would have no way to refer to the new MenuItems.

For named variables, set the name property to use the existing name.

The property is a STRING type. There is no default value for this property. You cannot update the property at run time.

Compatibility

Table 1. Support for name property
Data item JSF handler VGUI record Console UI Text Form Java™ Text Form COBOL Print Form Java Print Form COBOL
Yes No No Yes No No No No

Feedback