Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Marilyne
Contributor II
Contributor II

How to send a large amount of data with an API on Qlik extension

Hi experts,

I created a Qlik extension so that I could retrieve a dataset via this extension to make predictions using machine learning and store the results in a database.

The problem is that I can't send more than 3 columns (even though there are more than 4,000 rows).
I tried sending data in blocks using JavaScript, but I'm still limited.


How can I write the code to send all my data? For example, 4,000*15 cells.

Thanks in advance.

Labels (2)
1 Solution

Accepted Solutions
Øystein_Kolsrud
Employee
Employee

What columns you get is defined by the "Left" and "Width" parts of the NxPage-instance you use when getting data, so that's probably where you have the settings you're looking for. Be aware that the engine enforces a limit so that you get an error if you have a page larger than 10000 cells, so if you have 15 columns and 4000 rows, then you'll have to do pagination to get them all. If you for instance choose to get 500 rows at a time (total cells per page 15*500=7500) you could use this as your first page:

{ Top = 0, Left = 0, Height = 500, Width = 15 }

And this as your second:

{ Top = 500, Left = 0, Height = 500, Width = 15 }

The first page will return row 0-499 and the second one will return row 500-999.

View solution in original post

1 Reply
Øystein_Kolsrud
Employee
Employee

What columns you get is defined by the "Left" and "Width" parts of the NxPage-instance you use when getting data, so that's probably where you have the settings you're looking for. Be aware that the engine enforces a limit so that you get an error if you have a page larger than 10000 cells, so if you have 15 columns and 4000 rows, then you'll have to do pagination to get them all. If you for instance choose to get 500 rows at a time (total cells per page 15*500=7500) you could use this as your first page:

{ Top = 0, Left = 0, Height = 500, Width = 15 }

And this as your second:

{ Top = 500, Left = 0, Height = 500, Width = 15 }

The first page will return row 0-499 and the second one will return row 500-999.