Files and Functions: Container API

To separate functionality between layers, the container-oriented parts of the API have been moved into separate files. This has also split up some functions that provided communication between the Hybrid Web Container and the JavaScript application.

The container-oriented files use an "hwc" prefix, and include:
  • hwc-api.js – public API for any Hybrid Web Container application.
  • hwc-comms.js – communications support for Hybrid Web Container applications.
  • hwc-utils.js – miscellaneous support routines, including both internal worker functions, and other routines that are available for Hybrid Web Container applications.
In cases where a function has been split between a HybridApp aspect and a container-specific aspect, the suffix "_CONT" has been added to the container-specific function. The commonly used function hwc.doOnlineRequest() first performs HybridApp-specific processing, such as custom callbacks, then delegates hwc.doOnlineRequest_CONT() for the actual container-side HTTP call. This same technique applies to these routines:
  • onWorkflowLoad() has been replaced by:
    • hwc.onHybridAppLoad () in Utils.js, which delegates to:
    • hwc.onHybridAppLoad_CONT() in hwc-utils.js.
  • addNativeMenuItemsForScreen () has been replaced by:
    • hwc.addNativeMenuItemsForScreen() in Utils.js, which delegates to:
    • hwc.addNativeMenuItem_CONT() in hwc-utils.js.
  • handleCredentialChange() has been replaced by:
    • hwc.handleCredentialChange() in Utils.js, which delegates to:
    • hwc.handleCredentialChange_CONT() in hwc-utils.js.
  • doOnlineRequest() has been replaced by:
    • hwc.doOnlineRequest() in API.js, which delegates to:
    • hwc.doOnlineRequest_CONT() in hwc-comms.js.
  • doOnlineRequest() has been replaced by:
    • hwc.doOnlineRequest() in API.js, which delegates to:
    • hwc.doOnlineRequest_CONT() in hwc-comms.js.
  • doSubmitWorkflow() has been replaced by:
    • hwc.doSubmitWorkflow() in API.js, which delegates to:
    • hwc.doSubmitWorkflow_CONT() in hwc-comms.js.
  • setScreenTitle() has been replaced by:
    • hwc.setScreenTitle() in API.js, which delegates to:
    • hwc.setScreenTitle_CONT() in hwc-comms.js.
  • addMenuItem() has been replaced by:
    • hwc.addMenuItem() in API.js, which delegates to:
    • hwc.addMenuItem_CONT() in hwc-comms.js.
  • showAttachmentContents() has been replaced by:
    • hwc.showAttachmentContents() in API.js, which delegates to:
    • hwc.showAttachmentContents_CONT() in hwc-comms.js.
  • showAttachmentFromCache() has been replaced by:
    • hwc.showAttachmentFromCache() in API.js, which delegates to:
    • hwc.showAttachmentFromCache_CONT() in hwc-comms.js.
  • doAttachmentDownload() has been replaced by:
    • hwc.doAttachmentDownload() in API.js, which delegates to:
    • hwc.doAttachmentDownload_CONT() in hwc-comms.js.
  • doActivateWorkflow() has been replaced by:
    • hwc.doActivateWorkflow() in API.js, which delegates to:
    • hwc.doActivateWorkflow_CONT() in hwc-comms.js.
  • doCredentialsSubmit() has been replaced by:
    • hwc.doCredentialsSubmit() in API.js, which delegates to:
    • hwc.doCredentialsSubmit_CONT() in hwc-comms.js.