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.
| 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 |