This property contains the handle QIX Engine assigned to the API. Used internally in enigma.js for caches and JSON-RPC
This property contains the unique identifier for this API.
This property contains a reference to the session that this API belongs to.
This property contains the schema class name for this API.
You can create multiple states within a Qlik Sense app and apply these states to specific objects within the app. Objects in a given state are not affected by user selections in the other states.
Name of the alternate state. >> This parameter is mandatory.
Adds a field on the fly. The expression of a field on the fly is persisted but not its values.
Name of the field.
Expression value. It is not possible to use all aggregation functions. For example, you cannot add a field on the fly with an expression that uses the Sum or Count aggregation functions.
Checks if a given expression is valid.
Note: The expression is correct if the parameters qErrorMsg, qBadFieldNames and qDangerousFieldNames are empty.
Expression to check..
Optional
qLabels: string[](Array of String) List of labels. This parameter is optional.
Checks if:
Note: The expression is correct if the parameters qErrorMsg and qBadFieldNames are empty.
Expression to check.
Checks the syntax of a script. If there are errors, the engine returns the following properties in the response:
Note: The first area is the primary error area, the second area is the secondary error area. The second area is optional and is shown only if qSecondaryFailure is set to true. The second area ends when the next statement in the script begins.
Clears all selections in all fields of the current app.
This parameter is optional. Default is false. Selections on locked fields are not cleared. Set this parameter to true to clear all selections, including the locked fields.
Optional
qStateName: stringName of the alternate state. If an alternate state is defined in qStateName, only the selections related to this alternate state are cleared. This parameter is optional. Default state is current selections.
Clones any visualizations, sheets and stories. The clone method works for both app objects and child objects. When you clone an object that contains children, the children are cloned as well.
Note: The identifier is set by the engine.
Identifier of the object to clone
Commits the draft of an object that was previously created by invoking the CreateDraft method. Committing a draft replaces the corresponding published object.
Note: The identifier is set by the engine.
Identifier of the draft to commit.
Creates a master dimension. A master dimension is stored in the library of an app and can be used in many objects. Several generic objects can contain the same dimension.
Information about the properties. >> This parameter is mandatory.
Creates a draft of an object. This method can be used to create a draft of a sheet or a story that is published. This is a way to continue working on a sheet or a story that is published. Replace the published object by the content of the draft by invoking the CommitDraft method.
Note: The identifier is set by the engine.
Identifier of the object to create a draft from.
Creates a master measure. A master measure is stored in the library of an app and can be used in many objects. Several generic objects can contain the same measure.
Creates a generic object at app level. It is possible to create a generic object that is linked to another object. A linked object is an object that points to a linking object. The linking object is defined in the properties of the linked object (in qExtendsId). The linked object has the same properties as the linking object. Notre: The linking object cannot be a transient object.
Creates a transient object. For example, you can use a transient object to create an app overview or a story overview. It is possible to create a transient object that is linked to another object. A linked object is an object that points to a linking object. The linking object is defined in the properties of the linked object (in qExtendsId). The linked object has the same properties as the linking object.
Creates a variable.
Note: This method is deprecated (not recommended to use). Use CreateVariableEx method instead.
Name of the variable. Variable names are case sensitive. >> This parameter is mandatory.
Creates a variable.
Note: This method is deprecated (not recommended to use). Use CreateVariableEx method instead.
Name of the variable. Variable names are case sensitive and must be unique. >> This parameter is mandatory.
Deletes a connection. The AttachedFiles connection can only be removed by the administrator of the system.
Note: In Qlik Sense Enterprise, there is an additional file connection named AttachedFiles.
Identifier of the connection to remove. >> This parameter is mandatory.
Removes a dimension.
Note: The operation is successful if qSuccess is set to true.
Identifier of the draft object to remove. >> This parameter is mandatory.
Identifier of the source object (the object from which a draft was created).
Removes a variable.
Note: The operation is successful if qSuccess is set to true. Script-defined variables cannot be removed using the DestroyVariableById method or the DestroyVariableByName method.
Identifier of the variable.
Removes a variable.
Note: The operation is successful if qSuccess is set to true. Script-defined variables cannot be removed using the DestroyVariableById method or the DestroyVariableByName method.
Name of the variable..
Reloads the script that is set in an app.
Note: The operation is successful if qSuccess is set to true.
Optional
qMode: numberError handling mode.
0: for default mode 1: for ABEND; the reload of the script ends if an error occurs 2: for ignore; the reload of the script continues even if an error is detected in the script.
This parameter is optional.
Optional
qPartial: booleanSet to true for partial reload. This parameter is optional. The default value is false.
Optional
qDebug: booleanSet to true if debug breakpoints are to be honored. The execution of the script will be in debug mode. This parameter is optional. The default value is false.
Reloads the script that is set in an app and returns the path to the script log file.
Note: A log file is created per reload.
Optional
qParams: IDoReloadExParamsThis parameter is optional.
Saves an app. All objects and data in the data model are saved. Script-defined variables cannot be removed using the DestroyVariableById method or the DestroyVariableByName method.
Optional
qFileName: stringName of the file to save. This parameter is optional.
Evaluates an expression as a string. Script-defined variables cannot be removed using the DestroyVariableById method or the DestroyVariableByName method.
Expression to evaluate.
Evaluates an expression as a dual. Script-defined variables cannot be removed using the DestroyVariableById method or the DestroyVariableByName method.
Expression to evaluate.
Export an Qlik QVF with a reduced datamodel
Optional
qOptions: { qBookmarkId - bookmark to export qExpires - download expires in [s]
Optional
qOptional
qRetrieves any fields that belong to the same archipelago as the specified field and that match at least one of the specified tags. Tags set by Qlik Sense are prefixed by the $ sign.
Name of the field. This method looks for fields that belong to the same archipelago as this specified field.
List of tags. This method looks for fields that match at least one of the tags in this list.
Returns dynamic properties (if any) in addition to the engine (fixed) properties. Script-defined variables cannot be removed using the DestroyVariableById method or the DestroyVariableByName method.
Computes a set of association scores for each pair of fields between two given tables that have been loaded in an app.
Name of the first table.
Name of the second table.
Retrieves a connection and returns:
Identifier of the connection. >> This parameter is mandatory.
Lists the content libraries. To differentiate a global content library from an app specific content library, you can check the property qAppSpecific. If this property is set to true, it means that the content library is app specific.
Note: There is always one specific content library per app.
Lists the owners of a database for a ODBC, OLEDB or CUSTOM connection.
Identifier of the connection. >> This parameter is mandatory.
Optional
qDatabase: stringName of the database. >> This parameter is mandatory.
Lists the fields inside a table of a database for a ODBC, OLEDB or CUSTOM connection.
Identifier of the connection. >> This parameter is mandatory.
Name of the table. >> This parameter is mandatory.
Optional
qDatabase: stringName of the database. >> This parameter is mandatory. (If qDatabase is not set then qOwner must be set.)
Optional
qOwner: stringOwner of the database. >> This parameter is mandatory. (If qOwner is not set then qDatabase must be set.)
Retrieves the values of the specified table of a database for a ODBC, OLEDB or CUSTOM connection.
Identifier of the connection. >> This parameter is mandatory.
Name of the table. >> This parameter is mandatory.
Optional
qDatabase: stringName of the database. >> This parameter is mandatory. (If qDatabase is not set then qOwner must be set.)
Optional
qOwner: stringOwner of the database. >> This parameter is mandatory. (If qOwner is not set then qDatabase must be set.)
Lists the tables inside a database for a ODBC, OLEDB or CUSTOM connection.
Identifier of the connection. >> This parameter is mandatory.
Optional
qDatabase: stringName of the database. >> This parameter is mandatory. (If qDatabase is not set then qOwner must be set.)
Optional
qOwner: stringOwner of the database. >> This parameter is mandatory. (If qOwner is not set then qDatabase must be set.)
Creates a script that contains one section. This section contains Set statements that give localized information from the regional settings of the computer.
Note: The computer regional settings are retrieved when the engine starts.
Optional
qLocalizedMainSection: stringName of the script section. The default value is Main. This parameter is optional.
Retrieves the description of a field.
Name of the field. >> This parameter is mandatory.
Optional
qStateName: stringName of the alternate state. This parameter is optional. Default state is current selections.
Lists the fields of a table for a folder connection.
Identifier of the connection. >> This parameter is mandatory.
Type of the file.
Name of the table. This parameter must be set for XLS, XLSX, HTML and XML files.
Optional
qRelativePath: stringPath of the connection file. This parameter is optional.
Lists the values in a table for a folder connection.
Identifier of the connection. >> This parameter is mandatory.
Path of the connection file. This parameter is optional.
Type of the file.
Name of the table. This parameter must be set for XLS, XLSX, HTML and XML files.
Lists the tables for a folder connection.
Identifier of the connection. >> This parameter is mandatory.
Path of the connection file. This parameter is optional.
Type of the file.
Lists the tables and fields of a JSON or XML file for a folder connection.
Identifier of the connection. >> This parameter is mandatory.
Path of the connection file. This parameter is optional.
Type of the file.
There are two ways to specify the directory to retrieve the files from:
Identifier of the connection. >> This parameter is mandatory.
Path of the connection file. This parameter is optional.
Returns the content of a library.
Name of the content library. It corresponds to the property qContentLibraryListItem/qName returned by the GetContentLibraries method.
Returns a vector of loosely coupled state flags, one element for each table in the app.
so that the circular references do not create a loop.
Where
0 means that the table is not loose 1 means that the table is loose 2 means that the table is always loose and cannot be unloose using the Qlik Engine API.
Note: The last three values in the vector are extra values. These values are for internal use. Note: In case of circular references, the engine automatically create loosely coupled tables
Retrieves any fields that match all or one of the specified tags in the data model of an app.
Note: Tags set by Qlik Sense are prefixed by the $ sign.
List of tags. Array of String The GetMatchingFields method looks for fields that match one or all of the tags in this list, depending on the value of qMatchingFieldMode.
Optional
qMatchingFieldMode: booleanMatching field mode. This parameter is optional. The default value is 0.
Retrieves the data of a specific table.
Position from the top starting from 0. If the offset is set to 0, the rows starting from the position/index 0 are shown.
Number of rows to show.
If this parameter is set to true, the internal data/table representation is shown. Synthetic fields are present (if any).
Name of the table.
Returns:
Defines the size of the window that is used to display the results.
(no infos in help)
Height of a cell in a table in pixels.
One of:
This parameter is mandatory.
If set to true, the system variables are included.
Gets the handle of a variable.
Note: This method is deprecated (not recommended to use). Use GetVariableById method or GetVariableByName method instead.
Name of the variable. >> This parameter is mandatory.
Retrieves information about the position of the tables in the data model viewer.
Note: The position of the broom points and the position of the connection points cannot be retrieved in Qlik Sense.
Guesses the data format for a given file. Recognized file formats are:
Identifier of the connection file. >> This parameter is mandatory.
Optional
qRelativePath: stringPath of the connection file. This parameter is optional.
Locks all selections in all fields of the current app.
Optional
qStateName: stringAlternate state name. If this parameter is set, the method locks all selections that are in the specified state name. This parameter is optional. The default value is an empty string.
Experimental
Optional
appOptional
bookmarks?: { Optional
connections?: IConnection[]Optional
dimensions?: IGenericDimensionProperties[]Optional
measures?: IGenericMeasureProperties[]Optional
objects?: (IGenericObjectProperties | IGenericObjectEntry)[]Optional
script?: stringOptional
variables?: IGenericVariableProperties[]Optional
options: { Optional
destroyOptional
getOptional
state?: stringOptional
type?: stringCreate new variable
name for the new variable
Optional
definition: string(OPTIONAL) new variable definition (expression)
Optional
comment: string(OPTIONAL) new variable comment
Update variable by providing the variable id
id of the variable to be updated
Optional
name: string(OPTIONAL) variable new name
Optional
definition: string(OPTIONAL) variable new definition (expression)
Optional
comment: string(OPTIONAL) variable new comment
Update variable by providing the variable name
name of the variable to be updates
variable new name
Optional
definition: string(OPTIONAL) variable new definition (expression)
Optional
comment: string(OPTIONAL) variable new comment
Updates a connection.
Note: The identifier of a connection cannot be updated. qType cannot be modified with the ModifyConnection method.
Identifier of the connection. >> This parameter is mandatory.
Information about the connection. Properties that can be updated.
This parameter is mandatory.
Set this parameter to true to override the user name and password. This parameter is optional.
Publishes an app. The published app can have a different name than the original app. All app objects are published. Generic objects, bookmarks, dimensions and measures inside the app are published.
Note: This operation is possible only in Qlik Sense Enterprise. Note: An app can only be published once and cannot be published to more than one stream.
Identifier of the stream.
ame of the published app. This parameter is optional. If this parameter is not set, the engine automatically gives a new name to the published app.
Removes a variable.
Note: This method is deprecated (not recommended to use). Use DestroyVariableById method or DestroyVariableByName method instead.
Name of the variable. Variable names are case sensitive.
This parameter is mandatory.
Returns the search matches for one or more search terms. The search results depend on the search context.
See: SearchCombinationOptions
Note: This method is deprecated (not recommended to use). Use SearchResults method instead.
Information about the search fields and the search context.
List of terms to search for.
Array of pages to retrieve.
This parameter is mandatory.
Returns the generic objects corresponding to one or more search terms. The search is performed within the title, subtitle, footnote and type. In addition, associated dimension values are also searched in. For example, if the country Japan is selected and the object contains the dimension City, the object will appear in the results for Osaka but not for Johannesburg. The generic objects with the following types will never appear in the results: slideitem, sheet, story, slide, masterobject, snapshot, LoadModel, appprops and searchhistory.
Information about the search fields and the search context.
List of terms to search for.
Array of pages to retrieve.
This parameter is mandatory.
Returns the search matches for one or more search terms. Search results are organized in search groups. The type of search group indicates where the search matches come from (from data for example). Each search group contains search results that correspond to a combination of search terms. For example, if the search terms are organic, pasta , and America, the possible combination of search groups are:
For every search group, there are one or more search group items. Each subgroup item contains results that correspond to an item type (for example a field). For every search group item, there are one or several search matches. The position of the match in each search result is given.
Information about the search fields and the search context.
List of terms to search for.
Array of pages to retrieve.
This parameter is mandatory.
For every search group item, there are one or several search matches. The position of the match in each search result is given.
Information about the search combinations.
List of terms to search for.
Selects all search hits for a specified group. The results depend on the search context. See: SearchCombinationOptions
Information about the search fields and the search context.
List of terms to search for.
Index (value of qId) of the search result to select.
This parameter is deprecated and should not be set.
Sends a generic command to a custom connector. For more information on the commands that can be sent to a custom connector, see the QVX SDK help.
Connector file name. Command to be executed by the connector.
One of: - JsonRequest - GetCustomCaption - IsConnected - DisableQlikViewSelectButton - HaveStarField
Method name to be used within the command. The available methods depend on the chosen connector.
Parameters of the command. No parameters are required. This parameter is optional.
Name of the connection. This parameter is optional.
Sets a vector of loosely coupled state flags, one element for each table in the app.
Note: The last three values in the vector are extra values. These values are for internal use.
Note: The engine returns true if the vector has been updated.
Sets the positions of the tables in the data model viewer.
Note: The position of the broom points and the position of the connection points cannot be set in Qlik Sense.
Information about the table.
Unlocks all selections in all fields of the current app.
Optional
qStateName: stringAlternate state name. If this parameter is set, the method unlocks all selections that are in the specified state name. This parameter is optional. The default value is an empty string.
Despite the name, this property corresponds to the qInfo.qType property on your generic object's properties object.