<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Read data with pagination in GetObject callback in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Read-data-with-pagination-in-GetObject-callback/m-p/1651971#M1232502</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to read data from object via &lt;A href="https://help.qlik.com/en-US/qlikview-developer/November2017/apis/js+API/symbols/Qv.Document.html#GetObject" target="_blank" rel="noopener"&gt;Document.GetObject&lt;/A&gt; API, but I've got some issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;When I use desktop version of QlikView everything fine, I read 40k rows of data in tablebox in 90 seconds, but when I run the same script with the same amount of data in Web version of QlikView in IE it crashes with message "This page&amp;nbsp; stop respond..."&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When I'm trying to read by chunks I use &lt;A href="https://help.qlik.com/en-US/qlikview-developer/November2017/apis/js+API/symbols/Qv.Document.Object.Data.html#PageObject" target="_blank" rel="noopener"&gt;PageObject&lt;/A&gt; (&lt;A href="https://community.qlik.com/t5/QlikView-Extensions/How-can-I-retrieve-data-for-an-extension-object-in-several/m-p/367398" target="_blank" rel="noopener"&gt;forum&lt;/A&gt;) method:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;_this.Doc.GetObject(name, function () {
    this.Data.Page = new this.Data.PageObject(this.Data, 100, 1)
    this.Data.Page.Next()

    log('Page.Next(): ', this.Data.Page.Count, this.Data.Page.Current)

    this.Data.Page.Next()
    this.Data.Page.Next()
    this.Data.Page.Next()
    this.Data.Page.Next()

    var item = this.Data.Page.StartItem()
    log('Page.Next() x 4: ' , this.Data.Page.Count
                            , this.Data.Page.Current
                            , item
                            , this.Data.Rows.length)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result output in console via QvConsole extension:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;gt; Page.Next(): 21 2
&amp;gt; Page.Next() x 4: 21 6 500 40&lt;/LI-CODE&gt;&lt;P&gt;So Page.Next() call changes page meta data like Page.Current, but does not change this.Data.Rows, however in &lt;A href="https://help.qlik.com/en-US/qlikview-developer/November2017/apis/js+API/symbols/Qv.Document.Object.Data.PageObject.html#StartItem" target="_self"&gt;JS API Documentation we can see&lt;/A&gt;:&lt;BR /&gt;&lt;EM&gt;Index to start reading data from in order to display data for the current page&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Example:
var item = this.Data.Page.StartItem();
var text = this.Data.Rows[item][1].text​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had got 500 as a result of StartIndex() call, when there is only 40 rows in data...&lt;BR /&gt;So my question is how can I read page data in GetObject callback?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GetObject call is a subscription on object changes - is there any way to unsubscribe?&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator>Lavysh</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>Read data with pagination in GetObject callback</title>
      <link>https://community.qlik.com/t5/QlikView/Read-data-with-pagination-in-GetObject-callback/m-p/1651971#M1232502</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to read data from object via &lt;A href="https://help.qlik.com/en-US/qlikview-developer/November2017/apis/js+API/symbols/Qv.Document.html#GetObject" target="_blank" rel="noopener"&gt;Document.GetObject&lt;/A&gt; API, but I've got some issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;When I use desktop version of QlikView everything fine, I read 40k rows of data in tablebox in 90 seconds, but when I run the same script with the same amount of data in Web version of QlikView in IE it crashes with message "This page&amp;nbsp; stop respond..."&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When I'm trying to read by chunks I use &lt;A href="https://help.qlik.com/en-US/qlikview-developer/November2017/apis/js+API/symbols/Qv.Document.Object.Data.html#PageObject" target="_blank" rel="noopener"&gt;PageObject&lt;/A&gt; (&lt;A href="https://community.qlik.com/t5/QlikView-Extensions/How-can-I-retrieve-data-for-an-extension-object-in-several/m-p/367398" target="_blank" rel="noopener"&gt;forum&lt;/A&gt;) method:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;_this.Doc.GetObject(name, function () {
    this.Data.Page = new this.Data.PageObject(this.Data, 100, 1)
    this.Data.Page.Next()

    log('Page.Next(): ', this.Data.Page.Count, this.Data.Page.Current)

    this.Data.Page.Next()
    this.Data.Page.Next()
    this.Data.Page.Next()
    this.Data.Page.Next()

    var item = this.Data.Page.StartItem()
    log('Page.Next() x 4: ' , this.Data.Page.Count
                            , this.Data.Page.Current
                            , item
                            , this.Data.Rows.length)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result output in console via QvConsole extension:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;gt; Page.Next(): 21 2
&amp;gt; Page.Next() x 4: 21 6 500 40&lt;/LI-CODE&gt;&lt;P&gt;So Page.Next() call changes page meta data like Page.Current, but does not change this.Data.Rows, however in &lt;A href="https://help.qlik.com/en-US/qlikview-developer/November2017/apis/js+API/symbols/Qv.Document.Object.Data.PageObject.html#StartItem" target="_self"&gt;JS API Documentation we can see&lt;/A&gt;:&lt;BR /&gt;&lt;EM&gt;Index to start reading data from in order to display data for the current page&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Example:
var item = this.Data.Page.StartItem();
var text = this.Data.Rows[item][1].text​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had got 500 as a result of StartIndex() call, when there is only 40 rows in data...&lt;BR /&gt;So my question is how can I read page data in GetObject callback?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GetObject call is a subscription on object changes - is there any way to unsubscribe?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-data-with-pagination-in-GetObject-callback/m-p/1651971#M1232502</guid>
      <dc:creator>Lavysh</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read data with pagination in GetObject callback</title>
      <link>https://community.qlik.com/t5/QlikView/Read-data-with-pagination-in-GetObject-callback/m-p/1652318#M1232505</link>
      <description>&lt;P&gt;For the last question about how to unsubscribe from object updates I find only two methods:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Closure variable&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function getData(name) {
    var done = false

    _this.Doc.GetObject(name, function () {
        if (done) return

        // Some logic on Object data

        done = true
    })
}
​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;U&gt;Hack&lt;/U&gt; with private, undocumented &lt;STRONG&gt;this.callbackFn&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function getData(name) {
    _this.Doc.GetObject(name, function () {
        // Some logic on Object data

        this.callbackFn = function() {}
    })
}
​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it only available options to do unsubscribe? They both seems to be not so obvious and clean.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 12:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-data-with-pagination-in-GetObject-callback/m-p/1652318#M1232505</guid>
      <dc:creator>Lavysh</dc:creator>
      <dc:date>2019-11-28T12:54:55Z</dc:date>
    </item>
  </channel>
</rss>

