GETSTATEMENT

Returns the statement (SQL, MDX or REST URI) as defined in the Connection tab.

Syntax

GETSTATEMENT(widget)

  1. widget - a reference to the widget from which the current statement should be returned - Value type: widget reference (optional; default: current widget)

Remarks

  • Returns a string containing the statement which is created by nedyx based on the current settings in the Connection tab. So the same statement which is sent to the database if GETDATA is called without parameters. Depending on the connection type, the statement is

    • SQL for ODBC connection type

    • MDX for Analysis Services (SSAS) connection type

    • REST URI for OData or Google Sheets connection type

Example

The cell at the bottom is filled with the SELECT statement which has been auto-generated for the table on the top.