<?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: GetFieldSelections in Module? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350114#M702348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;At the module, the method .evaluate is very useful. &lt;/P&gt;&lt;P&gt;You can use any expression that you would use at the interface as an argument. &lt;/P&gt;&lt;P&gt;In your case, you can try: &lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Set varSelectionMonth =ActiveDocument.Evaluate( "GetFieldSelections(DateCourse_MonthNumber,",",12)" )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox varSelectionMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Msgbox (ActiveDocument.Evaluate("&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;GetFieldSelections(DateCourse_MonthNumber,",",12)&lt;/SPAN&gt;" ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Hope it helps, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Erich&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2012 12:53:53 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2012-07-13T12:53:53Z</dc:date>
    <item>
      <title>GetFieldSelections in Module?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350112#M702346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use the function &lt;STRONG&gt;GetFieldSelections&lt;/STRONG&gt; within a module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this as a test, but it does not work (the Module window opens when triggered, but showing no error):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;'*** Update Chart Forecasts depending on current Selection ***'&lt;BR /&gt;Sub UpdateForecasts()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set varSelectionMonth = GetFieldSelections(DateCourse_MonthNumber,",",12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox varSelectionMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿Does anyone have any ideas?!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿Steve.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 11:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350112#M702346</guid>
      <dc:creator />
      <dc:date>2012-07-13T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Module?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350113#M702347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to make a textbox (paste a getselected funciont to it) and then go to module take the value from textbox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 12:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350113#M702347</guid>
      <dc:creator />
      <dc:date>2012-07-13T12:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Module?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350114#M702348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;At the module, the method .evaluate is very useful. &lt;/P&gt;&lt;P&gt;You can use any expression that you would use at the interface as an argument. &lt;/P&gt;&lt;P&gt;In your case, you can try: &lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Set varSelectionMonth =ActiveDocument.Evaluate( "GetFieldSelections(DateCourse_MonthNumber,",",12)" )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox varSelectionMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Msgbox (ActiveDocument.Evaluate("&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;GetFieldSelections(DateCourse_MonthNumber,",",12)&lt;/SPAN&gt;" ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Hope it helps, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Erich&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 12:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350114#M702348</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-07-13T12:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Module?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350115#M702349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this one works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Msgbox (ActiveDocument.Evaluate("GetFieldSelections(X)" ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 12:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350115#M702349</guid>
      <dc:creator />
      <dc:date>2012-07-13T12:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Module?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350116#M702350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ".Evaluate" function is exactly what I was after!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strangely enough, it was the "Set" keyword which was causing the Module window to open when calling the subroutine.&amp;nbsp; Without it, this code worked fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varSelectionMonth = ActiveDocument.Evaluate("GetFieldSelections(DateCourse_MonthNumber,',',12)")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox (varSelectionMonth)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not entirely sure when/why to use "Set" - QlikView has so many different (illogical!) ways to do things it's appalling!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 13:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Module/m-p/350116#M702350</guid>
      <dc:creator />
      <dc:date>2012-07-13T13:30:11Z</dc:date>
    </item>
  </channel>
</rss>

