<?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 Re: Custom Text or Button Object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606691#M1234151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you want to physically count the rows, which is difficult. Are you thinking of getting&amp;nbsp; a handle to the chart and counting the number of &amp;lt;tr&amp;gt; elements or something like that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually just calculate the number in an expression that simulates what's in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 01:16:16 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-03-06T01:16:16Z</dc:date>
    <item>
      <title>Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606688#M1234144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have need of what I think is a pretty simple extension, but I'm getting nowhere trying to create it myself. All I'm trying to do is create a text object or button (need to have an Action attached when clicked) that shows the number of rows of a specified chart. For example, CH01 is a chart of sales orders on hold and the custom text object would say "Orders currently on hold: 99". The extension would allow you to specify the object ID that has the rows you need counted. The user could then click on this and the chart would open/become visible. Does anyone have any guidance on creating such as extension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606688#M1234144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606689#M1234147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why an extension? Why not just a text box that makes the calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 00:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606689#M1234147</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-03-06T00:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606690#M1234149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would require a macro to make the API call, which is what I'm already doing. But I'm trying to make the switch over to web view so a macro is no longer an option (i'm trying to get away from macros).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 01:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606690#M1234149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-06T01:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606691#M1234151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you want to physically count the rows, which is difficult. Are you thinking of getting&amp;nbsp; a handle to the chart and counting the number of &amp;lt;tr&amp;gt; elements or something like that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually just calculate the number in an expression that simulates what's in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 01:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606691#M1234151</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-03-06T01:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606692#M1234154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My original desire was to place the number of rows directly in the caption of my minimized charts without needing to rely on using the same set analysis expressions as are in the chart. So, since I wanted to switch to web view and ditch macros anyway, I thought another option would be a simple extension object that could fetch the row count. With about thirty charts, I could place multiple instances of this extension and let the users click on them to open the associated charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&amp;nbsp; the goal is to give the users a way to know if minimed charts actually contain data, given any current selections, without needing to&amp;nbsp; restore or maximize each chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 02:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606692#M1234154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-06T02:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606693#M1234157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting the row count of a chart would be quite easy. However you also want to maximize charts as actions which will be harder. Not to mention that you would have to attach callbacks to about thirty charts that would have to run on every update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some pseduo code to get you started, it will append the row count for every chart on the page to the caption.&lt;/P&gt;&lt;P&gt;Disclaimer: I haven't tested it but should work in theory &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qva.AddDocumentExtension('YourExt', function() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var $doc = Qv.GetCurrentDocument();&lt;/P&gt;&lt;P&gt;&amp;nbsp; $doc.GetAllObjects(function(objects) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for (var i = 0; i &amp;lt; objects.length; i++)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var obj = objects&lt;I&gt;;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(obj.Type === 'CH') {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get the object through qv.getobject then {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Layout.SetProperty('Caption.Text', 'My Row Count: ' + this.Data.TotalSize.y, true);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2014 18:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606693#M1234157</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2014-03-09T18:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606694#M1234160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Btw. would be nice to have similar function for this.Data.TotalSize.y in QlikView itself..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2014 20:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606694#M1234160</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-03-09T20:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606695#M1234163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ye it's coming, we will be binding it to the angular scope in the next major release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2014 20:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606695#M1234163</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2014-03-09T20:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606696#M1234165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alexander, that gives me a place to start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2014 20:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606696#M1234165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-09T20:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606697#M1234167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ditto.&lt;/P&gt;&lt;P&gt;The number of rows is mostly defined by the combination of dimensions and may include additional rules based on expressions (e.g. for "suppress zero-values").&amp;nbsp; No macro, no extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 12:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606697#M1234167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-10T12:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Text or Button Object</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606698#M1234168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I've got so far. It seems to work fine if there is only one chart, but gets a little unpredictable when there is more than one chart. And things really get screwy if the chart is minimized (which is what I need, given the number of charts available to the user).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qva.AddExtension('GetChartRowCount', function() { &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; var _this = this;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var vDoc = Qv.GetCurrentDocument();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; vDoc.GetAllObjects(function(objects) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(var i=0; i&amp;lt;objects.length; i++)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; var obj = objects&lt;I&gt;;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(obj.type == 'Straight Table' || obj.type == 'Pivot Table') {&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vObj = vDoc.GetObject(obj.id, function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vObj.Layout.SetProperty('Caption.Text', 'Rows = ' + this.Data.TotalSize.y, true);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }});&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 19:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Text-or-Button-Object/m-p/606698#M1234168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-17T19:18:57Z</dc:date>
    </item>
  </channel>
</rss>

