updateDialog()

Checks if the application is up to date by calling checkUpToDate().

Syntax

updateDialog(reportWhenUpToDate BOOLEAN)
   RETURNS gwa.app.TUpdateDialogResult
  1. If reportWhenUpToDate returns TRUE, a message box displays that the application is up to date.
It returns a TUpdateDialogResult record about the update success.

Usage

Use the updateDialog() method when you want to implement a user-driven update. The method checks if the application is up to date by calling the checkUpToDate() method internally. When the loaded version differs from the server version, a dialog is displayed that prompts the user for action to update or cancel. Otherwise, a message box displays that the application is up to date.

For a complete example, run the GWA "update" demo in your GWA installation directory. If installed in FGLDIR, you will find the demo in $FGLDIR/demo/gwa/update or if installed in a separate directory, you will find it in gwa-install-dir/demo/gwa/update.