- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to cancel creation of a HyperCube?
I am writing a Qlik Sense extension that creates HyperCubes to generate buckets for histograms using the CLASS function. It works without issue using createCube() and an expression using CLASS for the value of qFieldDefs.
The problem I have is that some of the data sets number in the tens of millions of records, and the call to createCube() can take as long as 30 seconds to return. It appears a selection cannot be applied to the given field until after the cube is created. This delay is problematic, and I would like to abort the creation of the HyperCube before applying the selection to the field.
The call to createCube() returns an object with a single member, state, which is set to 0.
The destroySessionObject() can be used to delete an existing HyperCube, but it requires an object ID. The ID is available in the handler passed to createCube(), but this function only gets called after the cube has been created.
Is there a way to cancel the creation of a HyperCube?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are methods in the .Net API to abort requests, but is there anything similar in the JavaScript APIs?