useGlobal

Usage

Use the hook inputting the config used in the Motor component
1
const {
2
global,
3
docList,
4
engineVersion,
5
oSName,
6
oSVersion,
7
} = useGlobal({
8
//Enter your app config here..
9
host: "myqliksite.eu.qlikcloud.com", // Qlik Sense Host
10
secure: true, // Whether your host is secure of not (HTTPS / HTTP)
11
port: null, // Qlik Sense site port
12
prefix: "", // Prefix
13
appId: "....", // Application Id
14
webIntId: "...", // Web Integration Id, for connection to Qlik cloud
15
qcs: true, // whether you are connecting to a Qlik Cloud site or not
16
});
17
Copied!

useGlobal Options

  • config: <object>
    • host: Qlik Sense Host
    • secure: Whether your host is secure of not (HTTPS / HTTP)
    • port: Qlik Sense site port
    • prefix: Prefix for virtual proxy
    • appId: Application Id
    • webIntId: Web Integration Id, for connection to Qlik cloud
    • qcs: Whether you are connecting to a Qlik Cloud site or not

Global Properties

The following properties are returned from the hook
  • global: <object>
    • This is the global object retunred when opeing a new session
  • docList: <array>
    • An array of documents available on the server
  • engineVersion: <string>
    • Version number of the Qlik Sense engine connected to.
  • osName: <string>
    • Name of the operating system on which the Qlik Sense server is running.
  • osVersion: <string>
    • Version of the Operating System on which the Qlik Sense Server is running.
Last modified 6mo ago