API
  • Introduction
  • Overview
    • Introduction
  • REST API
    • Invoking Platform from external apps
  • Client-side variables
    • Inside a client-side Javascript action
  • Client-side Javascript API
    • Global methods and UI API
    • Uploading files
    • Window
  • Server-side issues
    • Designing a Web Service
    • Server-side Javascript Debugger
  • Server-side variables
    • Inside a business component
    • Inside a server-side Javascript action
  • Server-side Javascript API
    • Monitoring
    • Alert
    • Email
    • HTTP
    • JWT
    • Ldap
    • CSV-Text File
    • Image File
    • Excel File
    • PDF File
    • Other Files
    • Other
    • MongoDB
    • Reporting
    • Sql
    • XML
    • Activiti BPM
    • Archiflow
    • Import Cells from xlsx
    • Import Rows from csv, xls and xlsx
    • User management
    • Whatsapp
    • Chips panel
    • Google Cloud Storage
    • Google GSuite
    • Google Spanner
    • Google BigQuery
    • Google Datastore
    • Google App Engine
    • Google Sheet
  • Function JSS EE
  • Function JSS
Powered by GitBook
On this page

Was this helpful?

  1. Server-side variables

Inside a business component

Platform allows to specify SQL instructions including binding variables.

These binding variables are always defined using the notation:

:XXX

where XXX is the variable name, always in upper case.

These variables will be automatically replaced by the corresponding values available at user session level.

The user session is composed of a set of variables:

  • predefined variables, automatically set by Platform, when the user logs on

  • custom variables, defined using the addCustomApplUserVars server-side javascript method

  • input parameters, passed to the business component, defined in the business component definition window (input pars subfolder)

The predefined variables are:

Variable name

Description

:APPLICATION_ID

application identifier

:BASE_URL

server base url

:COMPANY_ID

company identifier (used in case the app supports partitioned data)

:SITE_ID

site identifier

:USERNAME

current user

:UUID or :DEVICE_ID

device id, i.e. a unique identifier for a specific device (more specific than the username)

:LANGUAGE_ID

current user

:DOCUMENTS_DIR

absolute path within the mobile device, where files are stored;it is a folder inside the “customFiles” default app folder.

:TODAY

current date

:NOW

current date+time

:YEAR

current year

:GPS_LATITUDE

current latitude

:GPS_LONGITUDE

current longitude

:GPS_ALTITUDE

current altitude

:GPS_SPEED

current speed

:APP_VERSION

current app versione

:LAST_SYNC_DATE

last sync date

PreviousServer-side Javascript DebuggerNextInside a server-side Javascript action

Last updated 5 years ago

Was this helpful?