<?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: Updating field from Inputfield in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306356#M710558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView treats each inputfield's value as unique, and as you've already discovered, it will not group the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script, you can create your table using the Order_no and Comments fields, and declaring the Comments field as an inputfield. In the pivot table, instead of using the Comments field as your dimension, use a calculated dimension as: text(Comments). This cheat will make QlikView override the default inputfield behaviour an it will behave as a standard field, grouping the equal values!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand it!&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 May 2011 00:40:26 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2011-05-20T00:40:26Z</dc:date>
    <item>
      <title>Updating field from Inputfield</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306353#M710553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 3 fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order_No &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Comments&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputfield&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _Comment2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this field is used in a pivot table because I can not use the inputfield to group the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the value of the inputfield&amp;nbsp; and update the _Comment2 field for the current Order_No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying with some lines with out success.&lt;/P&gt;&lt;P&gt;1.-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.DynamicUpdateCommand("Update MyTable SET _Comment2 = Comments Where Order_No='1'") &lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #333333;"&gt;but not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;2.-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Declaring variable into settings as sMyVar and the default value with =Comments, and on the trigger section I added Set Variable for the Comment field OnChange action like, Variable sMyVar and Value =Comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a macro code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set vValor = ActiveDocument.Variables("sMyVar")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox ( vValor.GetContent.String)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '(here i get an error "Object required vValor" and stops macro)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.DynamicUpdateCommand("Update MyTable SET _Comment2 = '"&amp;amp;vValor&amp;amp;" Where Order_No='1'")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------&lt;/P&gt;&lt;P&gt;I'll appreciate all kind of help about this issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Karim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 15:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306353#M710553</guid>
      <dc:creator />
      <dc:date>2011-05-17T15:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field from Inputfield</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306354#M710554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use an inputfield in a pivot table dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 23:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306354#M710554</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-05-18T23:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field from Inputfield</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306355#M710555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Fernando, &lt;/P&gt;&lt;P&gt;I can't open your sample, becaus I am using a personal edition.&lt;/P&gt;&lt;P&gt;Can you explain it. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Karim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 17:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306355#M710555</guid>
      <dc:creator />
      <dc:date>2011-05-19T17:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field from Inputfield</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306356#M710558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView treats each inputfield's value as unique, and as you've already discovered, it will not group the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script, you can create your table using the Order_no and Comments fields, and declaring the Comments field as an inputfield. In the pivot table, instead of using the Comments field as your dimension, use a calculated dimension as: text(Comments). This cheat will make QlikView override the default inputfield behaviour an it will behave as a standard field, grouping the equal values!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand it!&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 00:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306356#M710558</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-05-20T00:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field from Inputfield</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306357#M710559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Fernando,&lt;/P&gt;&lt;P&gt;Thanks for your help, thats what I am lookin for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After your answer, I tried with = before the inputfield and works same as Text function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, to group the inputfields as dimension in charts:&lt;/P&gt;&lt;P&gt;=Text(inputfield)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;=Inputfield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 13:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306357#M710559</guid>
      <dc:creator />
      <dc:date>2011-05-20T13:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Updating field from Inputfield</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306358#M710560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Fernando, this is brilliant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 14:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-field-from-Inputfield/m-p/306358#M710560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-20T14:06:02Z</dc:date>
    </item>
  </channel>
</rss>

