<?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 Can't write a straight table cell via macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233709#M85239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got something using your code, the problem is that it changes all the values in the rows for the column of "inputsum(prova)" &lt;/P&gt;&lt;P&gt;Help please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ERP project name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;=InputSum(PROVA)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;﻿COOPVT:EMEA:NIK:SUP&lt;/TD&gt;&lt;TD&gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PERT:EMEA:NIK:ARM&lt;/TD&gt;&lt;TD&gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PVT:EMEA:NIK:CO&lt;/TD&gt;&lt;TD&gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AL:EMEA:NIK:IS&lt;/TD&gt;&lt;TD&gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;﻿&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Aug 2011 12:14:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-15T12:14:17Z</dc:date>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233700#M85230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I've a problem with macros....&lt;/P&gt;&lt;P&gt;I've wrote vb subroutine to set some table's cell to a specific value (computed in the macro).&lt;/P&gt;&lt;P&gt;My code is simply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;msgbox&lt;/B&gt;(table.GetCell(1,2).text) &lt;P&gt;table.GetCell(1,2).text "4"&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;msgbox&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;(table.GetCell(1,2).text)&lt;/P&gt;&lt;P&gt;The first msgbox shows me 0, the correct cell value, after I set the cell to 4, but the next msgbox shows me 0 too,,,not 4 as I hope...&lt;/P&gt;&lt;P&gt;How can I correctly set the cell values for a Straight table?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 14:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233700#M85230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-26T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233701#M85231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you not want it to be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;table.SetCell(1,2).text "4"&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 18:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233701#M85231</guid>
      <dc:creator />
      <dc:date>2010-07-26T18:00:39Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233702#M85232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As pointed out you can't use GetCell to set a value. There is no SetCell api that I'm aware of and the only way I can see you performing this operation is by using an input field and the SetInputFieldCell member.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example from API Guide:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;set obj = ActiveDocument.GetSheetObject("CH01")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;obj.SetInputFieldCell 1,1,"999" 'set value in 2nd row, 2nd column to 999&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 05:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233702#M85232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T05:05:01Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233703#M85233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seem doesn't work....&lt;/P&gt;&lt;P&gt;I've tried to define a straight table, two dimension:&lt;/P&gt;&lt;P&gt;- A "real dimension"&lt;/P&gt;&lt;P&gt;- A "input field" dimension&lt;/P&gt;&lt;P&gt;I've set up a macro with the scratch of code you suggested me (I've also checked it in the reference API document), but il fault, when the script reaches the "SetInputFieldCell" instruction it brakes the excecuttion without any error message...it simply showes the macro editor window..&lt;/P&gt;&lt;P&gt;I don't know how to solve this problem...&lt;/P&gt;&lt;P&gt;Thank you for yuor help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 08:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233703#M85233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T08:20:54Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233704#M85234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have an example document to attach?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 08:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233704#M85234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T08:38:14Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233705#M85235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've setted up an example with a simple inline table with a dimension and an imput field.&lt;/P&gt;&lt;P&gt;When you press the button macro the execution creashes on the setInputFieldCell.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 08:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233705#M85235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T08:49:44Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233706#M85236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached example.&lt;/P&gt;&lt;P&gt;I moved the inputfield to the expressions and added an Inputsum() function around it to properly aggregate the fields associated with the dimension value. It should work now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 09:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233706#M85236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T09:59:01Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233707#M85237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thak you for your help! Now all works fine! &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 10:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233707#M85237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233708#M85238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, Im using a macro to compare two tables that are not related each other, and I want to add in the next column something saying "equal"&amp;nbsp; or "not equal", I tried to use your code to change the value of the cell but it didnt work. How could I do it?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 11:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233708#M85238</guid>
      <dc:creator />
      <dc:date>2011-08-15T11:57:00Z</dc:date>
    </item>
    <item>
      <title>Can't write a straight table cell via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233709#M85239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got something using your code, the problem is that it changes all the values in the rows for the column of "inputsum(prova)" &lt;/P&gt;&lt;P&gt;Help please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ERP project name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;=InputSum(PROVA)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;﻿COOPVT:EMEA:NIK:SUP&lt;/TD&gt;&lt;TD&gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PERT:EMEA:NIK:ARM&lt;/TD&gt;&lt;TD&gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PVT:EMEA:NIK:CO&lt;/TD&gt;&lt;TD&gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AL:EMEA:NIK:IS&lt;/TD&gt;&lt;TD&gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;﻿&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 12:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-write-a-straight-table-cell-via-macro/m-p/233709#M85239</guid>
      <dc:creator />
      <dc:date>2011-08-15T12:14:17Z</dc:date>
    </item>
  </channel>
</rss>

