ParaSQLApp

parasql. ParaSQLApp

Every application has a single instance of this class accessible via parasql.app

Extends

  • Object

Methods

execSQL(sql, callbacknullable)

Executes the specified SQL command and returns any results via the callback.

Description:
  • 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.

getCurrentUserEmailAddress() → {string}

Returns:

Returns the email address of the currently signed in user.

Type
string

getCurrentUserRole() → {string}

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

The ID of the selected widget is shown on the toolbar.

Returns:

Returns the widget with the specified widgetId.

Type
parasql.widget.AbstractWidget

signOut()

Signs the current user out of AppSynergy.

Description:
  • Signs the current user out of AppSynergy.