<?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: Re: ActiveDocument.GetSheetObject(&amp;quot;CH01&amp;quot;) and read the fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566713#M680827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to read the values of the fields of the sheet object CH01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 17:12:38 GMT</pubDate>
    <dc:creator>geogou1973</dc:creator>
    <dc:date>2014-04-11T17:12:38Z</dc:date>
    <item>
      <title>ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566711#M680825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i read the values of a field of a sheet object in a vbscript module ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Doc = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;set Field = Doc.Fields("STORE_ID").GetPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=0 to Field.Count -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc.Fields("STORE_ID").SELECT Field.Item(i).Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox(Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script does not work.&lt;/P&gt;&lt;P&gt;Can anyone help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 13:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566711#M680825</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-04-11T13:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566712#M680826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you attach sample file and expected result, it helps in providing solution easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 14:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566712#M680826</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-04-11T14:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566713#M680827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to read the values of the fields of the sheet object CH01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 17:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566713#M680827</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-04-11T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566714#M680828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUB ShowValues&lt;/P&gt;&lt;P&gt;set CntValues = ActiveDocument.fields("Activity1").getPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i=0 to CntValues.Count - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; a = CntValues.Item(i).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp; msgbox(a)&lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 17:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566714#M680828</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-04-11T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566715#M680829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry the file that i uploaded was not correct.&lt;/P&gt;&lt;P&gt;If you see the script reads all the values.&lt;/P&gt;&lt;P&gt;I want to read only the values that are in the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 18:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566715#M680829</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-04-11T18:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566716#M680830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your macro reads field values, but you need to read from the chart directly.&amp;nbsp; Replace macro with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub TEST&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject( "CH01" )&lt;BR /&gt;CellRect = ActiveDocument.GetApplication().GetEmptyRect()&lt;BR /&gt;CellRect.Top = 0&lt;BR /&gt;CellRect.Left = 0&lt;BR /&gt;CellRect.Width = obj.GetColumnCount&lt;BR /&gt;CellRect.Height = obj.GetRowCount&lt;BR /&gt;set CellMatrix = obj.GetCells( CellRect )&lt;BR /&gt;for RowIter=CellRect.Top+1 to CellRect.Height-1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(CellMatrix(RowIter)(ColIter).Text)&lt;BR /&gt;next&amp;nbsp;&amp;nbsp; &lt;BR /&gt;End sub &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>Fri, 11 Apr 2014 19:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566716#M680830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-11T19:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566717#M680831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 21:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566717#M680831</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-04-11T21:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566718#M680832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael how can i read the other fields also ?&lt;/P&gt;&lt;P&gt;I can not understand the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 21:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566718#M680832</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-04-11T21:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveDocument.GetSheetObject("CH01") and read the fields</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566719#M680833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro above is a slightly modified version of this one from the API Guide, which cycles through both rowns and columns, and starts from the header row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject( "CH01" )&lt;/P&gt;&lt;P&gt;CellRect = ActiveDocument.GetApplication().GetEmptyRect()&lt;/P&gt;&lt;P&gt;CellRect.Top = 0&lt;/P&gt;&lt;P&gt;CellRect.Left = 0&lt;/P&gt;&lt;P&gt;CellRect.Width = obj.GetColumnCount&lt;/P&gt;&lt;P&gt;CellRect.Height = obj.GetRowCount&lt;/P&gt;&lt;P&gt;set CellMatrix = obj.GetCells( CellRect )&lt;/P&gt;&lt;P&gt;for RowIter=CellRect.Top to CellRect.Height-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter=CellRect.Left to CellRect.Width-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(CellMatrix(RowIter)(ColIter).Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open the API Guide, take a look.&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, 14 Apr 2014 12:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetSheetObject-quot-CH01-quot-and-read-the-fields/m-p/566719#M680833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-14T12:15:06Z</dc:date>
    </item>
  </channel>
</rss>

