HP Anywhere 10.11 API Reference
Show:

HPA.Message

Module: HPA

Available since HP Anywhere 10.00

[Smartphone and Tablet Editions]

Display a message.

Usage example:

HPA.Message.error('My Error message', function(){ this.afterErrorMsg() }, this);

Methods

Methods

error

(
  • message
  • [callback]
  • [scope]
)
supports offline

Display an error message. Example:

Parameters:

  • message String

    Text to display.

  • [callback] Function optional

    Callback function to be called after the user dismisses the message.

  • [scope] Object optional

    The scope ('this' reference) in which the callback function is executed.

warning

(
  • message
  • [callback]
  • [scope]
)
supports offline

Display a warning message. Example:

Parameters:

  • message String

    Text to display.

  • [callback] Function optional

    Callback function to be called after the user dismisses the message.

  • [scope] Object optional

    The scope ('this' reference) in which the callback function is executed.