<?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: Use button action to set Field value to an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075617#M358862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you, see QVW attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) Click the blue button.&lt;BR /&gt;2.) -&amp;gt; TransIDTest will have value 988 -&amp;gt; OK&lt;BR /&gt;3.) Select value 3 of "TransLineID" in "Transactions" tablebox&lt;BR /&gt;4.) -&amp;gt; TransIDTest will STILL have value 988 -&amp;gt; NOT OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 10:28:31 GMT</pubDate>
    <dc:creator>hugmarcel</dc:creator>
    <dc:date>2016-01-27T10:28:31Z</dc:date>
    <item>
      <title>Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075609#M358854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button with an action to set field theField1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1 shall be set to value "=DATE(MAX(Sale_Date),'DD.MM.YYYY')".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The button works, however, in selection box i get specific value "03.02.2015", but I want to have the expression in the selection box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So If i change another field in the app, Field1 shall be set to the max(sale_date) according to the new filter selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx - Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 15:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075609#M358854</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2016-01-26T15:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075610#M358855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be instead of using button, use 'On Selection' trigger. Every time you make a selection, the trigger will set a new Max(Sale_Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 15:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075610#M358855</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-26T15:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075611#M358856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Unfortunately, it does not work for me, as making selections to a specific field shall not trigger actions in all situations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 15:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075611#M358856</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2016-01-26T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075612#M358857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As already suggested by &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌, in 'On selection' trigger, try to do the two event.. first clear your existing Field1, second select in Field is your expression &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 16:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075612#M358857</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-01-26T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075613#M358858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=date(max(%Datum))'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to define a other date-format than the default-format it will be more tricky to get the syntax right because of the single-quotes within the date-function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 16:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075613#M358858</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-26T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075614#M358859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=Sale_Date=Max(TOTAL Sale_Date)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075614#M358859</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-26T17:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075615#M358860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the answers. Unfortunately, they do not really work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With button action, I set Field1 to expression: ='=Sale_Date=Date(Max(TOTAL Sale_Date),''DD.MM.YYYY'')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) It works when I click the button. Field1 gets value of max total sale.&lt;/P&gt;&lt;P&gt;2.) It does not work when I change the selection so that the Max(total Sale_Date) changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1 keeps the same value as after I have clicked the button (step 1.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 08:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075615#M358860</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2016-01-27T08:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075616#M358861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you describe your data model a bit more detailed? You are not making a selection in Sale_Date, but in another Field1? How are these related in your data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075616#M358861</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-27T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075617#M358862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you, see QVW attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) Click the blue button.&lt;BR /&gt;2.) -&amp;gt; TransIDTest will have value 988 -&amp;gt; OK&lt;BR /&gt;3.) Select value 3 of "TransLineID" in "Transactions" tablebox&lt;BR /&gt;4.) -&amp;gt; TransIDTest will STILL have value 988 -&amp;gt; NOT OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075617#M358862</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2016-01-27T10:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075618#M358863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the reason will be that TransIDTest is in a separat table and connected per field Num. If you creates TransIDTest within the table Transactions it will be differ - or is there a special reason why you used here an extra table, if yes it won't be clear in this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 11:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075618#M358863</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-27T11:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075619#M358864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used QlikView CTRL -&amp;gt; QQ to create the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the "set field to expression by button action" as a feature that works in a general context. Not dependant on the data model. Thus, I like to have this working also with TransIDTest in a seperate table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 11:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075619#M358864</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2016-01-27T11:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075620#M358865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the separate table isn't thes problem it's rather the key and the table should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TransactionsExtra:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; TransID,&lt;/P&gt;&lt;P&gt; TransID AS TransIDTest&lt;/P&gt;&lt;P&gt;Resident Transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075620#M358865</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-27T12:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075621#M358866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what the use case of your requested functionality should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it seems that the search expression in the selection box is not re-evaluated on every change in your selection state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can work around this with triggers, as already suggested above by Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached for a demo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075621#M358866</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-27T12:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use button action to set Field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075622#M358867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you. I agree, the re-evaluation does not seem to work, and thus the expression in the selection status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now using Set Analysis expressions to set the max in my formulas directly. I do not like this as performace is worse than using a filter in data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-button-action-to-set-Field-value-to-an-expression/m-p/1075622#M358867</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2016-01-27T12:45:57Z</dc:date>
    </item>
  </channel>
</rss>

