Logo

Docs

  • HOME

RMP_RunMyApp

Specific embedded javascript API for RunMyApp

Methods

<static> isInOfflineMode() → {Boolean}

Returns:
true if offline mode is enabled, false otherwise
Type
Boolean

<static> scanBarcode(callback)

Start the integrated barcode scanner in RunMyApp.
Parameters:
Name Type Description
callback RMP_RunMyApp~scanBarcodeCallback Scan Barcode callback function
Example
RMP_RunMyApp.scanBarcode(function(barcode) {
     alert(barcode)
  })

<static> setSwipeToRefreshEnabled(value)

When a Web interface is opened from within RunMyApp, this method allows to refresh the content of the Web interface/page with swiping to the top of it (swipe-to-refresh).

By default, swipe-to-refresh is enabled in any Web interface.

If a designer uses this method with "false" in a Web interface, swipe-to-refresh is disabled only in this particular Web interface. This means that if a user navigates/opens another Web interface with RunMyApp, the swipe-to-refresh functionality is active again unless called from this other Web interface, too.
Parameters:
Name Type Description
value Boolean Value describing whether swipe-to-refresh should be enabled. This parameter is required.
Example
RMP_RunMyApp.setSwipeToRefreshEnabled(false);

Type Definitions

scanBarcodeCallback(barcode)

Parameters:
Name Type Description
barcode String The scanned barcode as a string, or null if no barcode is scanned.

Index

Widgets

  • RMP_Array

  • RMP_Button

  • RMP_Captcha

  • RMP_CheckBox

  • RMP_CustomWidget

  • RMP_FileUpload

  • RMP_GeoLocation

  • RMP_History

  • RMP_Html

  • RMP_HtmlPreview

  • RMP_Image

  • RMP_IncludedCollection

  • RMP_List

  • RMP_ListBox

  • RMP_ListenerComponent

  • RMP_MultiSelectionCheckBox

  • RMP_ProgressBar

  • RMP_RadioButton

  • RMP_Report

  • RMP_Scripter

  • RMP_Section

  • RMP_Spinner

  • RMP_StaticTextArea

  • RMP_TabPanel

  • RMP_TextInput

  • RMP_Tree

  • RMP_UrlInput

Static

  • JSON

  • RMP_RunMyApp

  • RMPApplication

  • RMPWidgets


© Akorbi Digital RMP. All Rights Reserved - Legal terms - Contact