qlik-oss / enigma.js

JavaScript library for consuming Qlik's Associative Engine.
MIT License
209 stars 82 forks source link

example of using getProgress with doReload #589

Closed cookiejest closed 5 years ago

cookiejest commented 5 years ago

I am struggling to find any example or using getProgress to find out the status of a reload. I know it needs to be passed the requestId but I tried it and no matter what requestId gets passed it always just outputs:

{ qStarted: true, qFinished: true, qCompleted: 0, qTotal: 0, qKB: 0, qMillisecs: 0, qErrorData: [], qPersistentProgressMessages: [], qTransientProgressMessage: { qMessageCode: 0, qMessageParameters: [ '' ] } }

Any ideas? A simple enigma example would be great.

peol commented 5 years ago

Sorry that we missed this issue. You can send in -1: getProgress(-1). As for error messages, you can configure how reload works in your session: https://core.qlik.com/services/qix-engine/apis/qix/global/#configurereload