Getting Started
Getting started with @motor-js/engine
Install via npm
The fastest way to get started is to install via npm.
Usage
Start by wrapping your application with the Motor component, at the root of your project. This handles connection to the Qlik engine and is needed for any of the hooks to work.
You can either set the configuration to your Qlik site directly in this component, or pass the engine object (useful if you are handling custom authentication and connection).
Next, import the hooks or contexts into your project and you are good to go. In the below example we are extracting data from the useList hook.
Use the link below to jump to more details on how to use the hooks in the package.
pageIntroductionUsage with Qlik Sense Cloud
If you are connecting to a Qlik cloud SAAS instance, your configuration will look slightly different. We need to set the qcs
entry to true and also add the web integration id, generated in your Qlik site.
For more information on how to generate your first web integration id in Qlik SAAS, head to the Qlik docs.
Usage with Qlik Sense Enterprise
If you are using Qlik Sense Enterprise, you will need to handle authentication to the Engine yourself. You can find an example React project below. Once you've connected to your engine instance, you can pass the returned object to your Motor component.
Last updated