HP Anywhere 10.11 API Reference
Show:

HPA.Server

Module: HPA

Available since HP Anywhere 10.00

Server API - helper methods for client-server communication.

Usage example:

HPA.Server.request( { appId: "myApp", uri: "defect", scope: this, success: function(){ console.log('Success'); })

Methods

getAppFolder

() String supports offline

Returns:

String: always "app"

getAppName

() String supports offline

Returns:

String: The app name.

request

(
  • opts
)
async

Send an HTTP request to the HP Anywhere server. Note special properties of the parameter in the parameter description.

Important: Ajax server requests are asynchronous, and this call will return before the response has been received. Process any returned data in a callback function. Based on Sencha's Ajax API. See also Sencha's documentation.

Parameters:

  • opts Object

    Relevant data in order to submit an http request.

    • uri String

      Relative URI of the requested resource.

    • [appId] String optional

      App ID, useful in the event that the current app attempts to access another app.