Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
brindlogcool
Contributor III

Mashup error

we have the mashup developed using Angularjs. it works fine in the server but the same is not working in the local/desktop versions.

Also we are getting the error as

require.js:44 TypeError: Cannot read property 'select' of null

    at qlik.js:84

    at g (require.js:45)

    at require.js:45

    at o.$eval (require.js:45)

    at o.$digest (require.js:45)

    at o.$apply (require.js:45)

    at Object.q.$apply (qlik.js:13)

    at qlik.js:84

require.js:44 TypeError: Cannot read property 'then' of undefined

    at Object.get (qlik.js:31)

    at Object.j [as showDialog] (qlik.js:31)

    at qlik.js:33

    at require.js:45

    at f (require.js:43)

    at require.js:43

Any suggestions why it works well in server but not in the desktop.

1 Solution

Accepted Solutions
brindlogcool
Contributor III

Re: Mashup error

i tried to copy the requirejs and the qlik.js from server to desktop client version. it works fine now no error... and all the objects are displaying without any issues.

5 Replies
Employee
Employee

Re: Mashup error

Hi brindlogcool‌,

It looks like you are reusing an appId from server in desktop

- in desktop appId is for example "HelpDesk Management.qvf"

- in server appId is a GUID generated on the server

The select error is mostly coming from the field API select method ‒ Qlik Sense; but initially, the appId was wrong, and therefore will nt return a promise, crashing with "Cannot read property 'then' of undefined"

...anyway, on desktop, change you appId to match the filename of the app, that should solve your issue.

I hope this helps.

brindlogcool
Contributor III

Re: Mashup error

Thanks Aiham,

we are using app name in the desktop. concern is some of the objects are disappearing and some of them are displaying.

Employee
Employee

Re: Mashup error

Strange,

If the desktop app is exactly the same as the on in server (for ex. exported), that should not happen - consider filing a bug.

regards,

brindlogcool
Contributor III

Re: Mashup error

Thanks Aiham, Few things i have tested - Create the mashup using the template provided by Qlik. So its kind of inconsistency in the mashups.

brindlogcool
Contributor III

Re: Mashup error

i tried to copy the requirejs and the qlik.js from server to desktop client version. it works fine now no error... and all the objects are displaying without any issues.