In this example the customization calls the JavaScript
alert() method to display an alert box with a message
and an OK button. When the alert box pops up, the user will have to click
OK to proceed. The text
(mytext) to display in the alert box is provided in
the front call.
Save your changes and rebuild your customization using gbc build:
View the changes by opening an app with a front call command.
DEFINE res STRING
MAIN
OPEN WINDOW w1 WITH FORM "HelloForm" ATTRIBUTES( style="dialog2" )
MENU
ON ACTION QUIT
CALL ui.Interface.frontCall( "myFrontCallModule","myalert", ["Goodbye!"] , [] )
DISPLAY res
EXIT MENU
ON ACTION CLOSE
EXIT MENU
END MENU
CLOSE WINDOW w1
END MAIN