Class: ParaSQLApp

parasql.ParaSQLApp

Every application has a single instance of this class accessible via parasql.app
License:
Example
var myReportObject = parasql.app.getWidgetById("ID12345");

Extends

  • Object

Methods

execSQL(sql, callbacknullable)

Executes the specified SQL command and returns any results via the callback.
Parameters:
Name Type Attributes Description
sql string The SQL command to execute.
callback function <nullable>
Optional function to be called after this operation completes; the callback function will be passed a single parasql.schema.DataTable object containing any results.
Since:
  • v65

getCurrentUserEmailAddress() → {string}

Since:
  • v65
Returns:
Returns the email address of the currently signed in user.
Type
string

getCurrentUserRole() → {string}

Since:
  • v65
Returns:
Returns the Role of the currently signed in user.
Type
string

getMasterLayout() → {parasql.widget.MasterLayout}

Returns:
The MasterLayout instance for this application, which is the root object in the view hierarchy.
Type
parasql.widget.MasterLayout

getWidgetById(widgetId) → {parasql.widget.AbstractWidget}

Parameters:
Name Type Description
widgetId string
Returns:
Returns the widget with the specified widgetId.
Type
parasql.widget.AbstractWidget

signOut()

Signs the current user out of ParaSQL. The user will be redirected to a Sign In screen to login as the same or another user.
Since:
  • v52