Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am starting to play around with React to create a Qlik Sense mashup and am encountering issues when trying to retrieve an app listing on the Qlik Sense Server. Below is the following code where I encounter an error in the second .then with an error of Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'then').
The first console.log(app) appears to be working in the console and I have attached a screenshot for reference.
Any help would be much appreciated!
const app = qApp(testConfig, qlikTicket);
//console.log(app);
app.then(app => {
console.log(app);
app.getAppList().then(data=> {
setTest(data);
})
})
Hi @jlaumelb ,
Our client APIs, are sometimes inconsistent the `getAppList` method has a callback method, see example here
You should probably do instead:
const app = qApp(testConfig, qlikTicket);
//console.log(app);
app.then(app => {
console.log(app);
app.getAppList(data=> {
setTest(data);
})
})
I hope this helps,