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. Client-side variables

Inside a client-side Javascript action

These predefined variables are automatically set when a user is logging on the User Interface and are defined at user level.

They represent Javascript objects you can use and refer in any part of the User Interface, through client-side javascript actions.

Variable Name

Type

Example

userRoles

Array

if (userRoles.indexOf(“1”)!=-1) {// do something}

languageId

String

language identifier, e.g. IT, EN, ...

appVersion

String

4WS.Platform version, showsed in the bottom bar

contextPath

String

web application context path; e.g. “/platform”

applicationId

String

application identifier

userDescription

String

user description, defined in the user detail form

buttonsAuth

Hash table

collection of couples related to the functionalies enabled for the current logged user.Each functionality is identified by the “function id”.Arrays contains 3 boolean values, related to the authorizations “can insert”, “can edit”, “can delete”.Authorizations are defined through the “Roles” functionality.Example:buttonsAuth["contratto.gridPanel319"] = [true,true,true];

companyId

String

identifier of the data partition in use; 4WS.Platform supports multiple company partitions (multi-tenancy), where each partition is identified by the company id.

username

String

username of the current logged user

applUserPars

collection of couplesrelated to tuser parameters, defined through the user detail form.

PreviousInvoking Platform from external appsNextGlobal methods and UI API

Last updated 5 years ago

Was this helpful?