<?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: Select rows and execute function calls in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-rows-and-execute-function-calls/m-p/1059345#M636147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume you added the Data Island table with Options. So you can select any option you want with LB object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable vGetOptionList = Concat(Options,'|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script, add IF cond for each Call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option1*) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption1&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option2*) THEN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ENDIF&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option3*) THEN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ENDIF&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option4*) THEN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ENDIF&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option5*) THEN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 21:15:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-19T21:15:45Z</dc:date>
    <item>
      <title>Select rows and execute function calls</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-and-execute-function-calls/m-p/1059344#M636146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;i need to execute in Qlikview one or more functions calls depending by rows selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The qvw file contain 6 functions and sometimes i need to run 1 function , sometimes 2, 3 , etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i have a tab with calls list to comment or uncomment. It's very bad system i suppose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of script i use today: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//call Option 1;&lt;/P&gt;&lt;P&gt;call Option 2;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//call Option 3;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;call Option 4;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;call Option 5;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//call Option 6;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This picture is an template i wish obtain.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IC354226.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122052_IC354226.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is possible in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/2005"&gt;anonymous&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2006"&gt;jimhalpert&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2008"&gt;afd&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2009"&gt;erika&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2010"&gt;bgh&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-rows-and-execute-function-calls/m-p/1059344#M636146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T15:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows and execute function calls</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-and-execute-function-calls/m-p/1059345#M636147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume you added the Data Island table with Options. So you can select any option you want with LB object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable vGetOptionList = Concat(Options,'|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script, add IF cond for each Call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option1*) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption1&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option2*) THEN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ENDIF&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option3*) THEN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ENDIF&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option4*) THEN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ENDIF&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF Wildmatch('$(&lt;SPAN style="font-size: 13.3333px;"&gt;vGetOptionList)&lt;/SPAN&gt;','*option5*) THEN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call FunctionOption4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-rows-and-execute-function-calls/m-p/1059345#M636147</guid>
      <dc:creator />
      <dc:date>2016-04-19T21:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows and execute function calls</title>
      <link>https://community.qlik.com/t5/QlikView/Select-rows-and-execute-function-calls/m-p/1059346#M636148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/dathu.qv"&gt;dathu.qv&lt;/A&gt;&lt;/STRONG&gt; i have tried but doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Snap 2016-04-20 at 12.17.10.png" class="jive-image image-1" src="/legacyfs/online/122149_Snap 2016-04-20 at 12.17.10.png" style="font-size: 13.3333px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In START Button i have expression: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Wildmatch('$(vGetOptionList)','AAA') THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call AAA;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Wildmatch('$(vGetOptionList)','BBB') THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call BBB;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Wildmatch('$(vGetOptionList)','CCC') THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call CCC;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Wildmatch('$(vGetOptionList)','DDD') THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call DDD;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In main script i have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vGetOptionList = Concat(Options,'|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Funzioni:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Funzione, posizione&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BBB, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCC, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDD, 4&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script tab "AAA" :&lt;/P&gt;&lt;P&gt; Sub AAA&lt;/P&gt;&lt;P&gt;&amp;nbsp; Msgbox("You called AAA");&lt;/P&gt;&lt;P&gt; end Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select one or more test field (AAA, BBB ecc.) and press Start button dont happen nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helllp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 10:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-rows-and-execute-function-calls/m-p/1059346#M636148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-20T10:43:43Z</dc:date>
    </item>
  </channel>
</rss>

