Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
brindlogcool
Creator III
Creator 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
Creator III
Creator III
Author

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.

View solution in original post

5 Replies
Aiham_Azmeh
Employee
Employee

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
Creator III
Creator III
Author

Thanks Aiham,

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

Aiham_Azmeh
Employee
Employee

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
Creator III
Creator III
Author

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
Creator III
Creator III
Author

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.