<?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: Launch URL based on Conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739938#M1042089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Attached is a QVW example, It would be one option, and is nothing pretty but demos the concept.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 17:51:43 GMT</pubDate>
    <dc:creator>cspencer3</dc:creator>
    <dc:date>2014-12-15T17:51:43Z</dc:date>
    <item>
      <title>Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739931#M1042074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button which launches the external URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to launch only if the user selects few mandataory fields ,if not just display an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 16:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739931#M1042074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-15T16:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739932#M1042076</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;send your initial script please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 16:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739932#M1042076</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2014-12-15T16:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739933#M1042078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no specific script involved here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Button click - &amp;gt; Add -&amp;gt;External-&amp;gt;Launch-&amp;gt;Application - Here is my URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 16:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739933#M1042078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-15T16:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739934#M1042081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help will be highly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 16:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739934#M1042081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-15T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739935#M1042083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jebamalai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the Enable Condition field in the General tab of the button properties window as shown in the figure attached below.&lt;/P&gt;&lt;P&gt;You can control if the user selects a certain field using &lt;STRONG&gt;GetSelectedCount(YOUR_FIELD_1)&amp;gt;0&lt;/STRONG&gt; expression.&lt;/P&gt;&lt;P&gt;If you have more fields you can just AND them like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetSelectedCount(YOUR_FIELD_1)&amp;gt;0 AND GetSelectedCount(YOUR_FIELD_2)&amp;gt;0 AND ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73537_Screen.PNG" style="height: 321px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;If you want to make an error message appear in a popup window you should use a macro.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739935#M1042083</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-12-15T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739936#M1042086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could take Giacomo's idea a little bit further and use the button to show an error text box if the proper selections are not made. You could add to actions to your Button, one which launches the URL and another that conditionally sets a variable.&amp;nbsp; So for your url launch you could do an if statement like:&lt;/P&gt;&lt;P&gt;if GetSelectedCount(Field1) &amp;gt;0 and GetSelectedCount(Field2) &amp;gt;0, Launch URL)&lt;/P&gt;&lt;P&gt;Then on your Variable setting action do&lt;/P&gt;&lt;P&gt;if GetSelectedCount(Field1) &amp;lt;&amp;gt; 0 and GetSelectedCount(Field2) &amp;lt;&amp;gt;0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this variable to conditionally show a text box that would pop up (hide or undhide) based on the variable switched above. If i use an error box like that i put another button in the top corner of the box that&amp;nbsp; uses the same hide/unhide condition to reset the variable to zero and allows the user to 'Cancel' the error box. Thus removing it from the screen. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739936#M1042086</guid>
      <dc:creator>cspencer3</dc:creator>
      <dc:date>2014-12-15T17:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739937#M1042088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use a macro you can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - set a variable (Ctrl+Alt+V) vButtonEnabled=if(GetSelectedCount(Field1)&amp;gt;0 and GetSelectedCount(Field2)&amp;gt;0, 1, 0)&lt;/P&gt;&lt;P&gt;2 - add a Run Macro action to the button&lt;/P&gt;&lt;P&gt;3 - create the macro like in the figure&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="73541" alt="Screen.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73541_Screen.PNG" style="font-size: 10pt; line-height: 1.5em; height: 306px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Note: substitute RunExe ("YOUR_PATH") with &lt;STRONG&gt;CreateObject("WScript.Shell").Exec("YOUR_PATH")&lt;/STRONG&gt; in the script to launch the app.&lt;/P&gt;&lt;P&gt;In this case every time the user clicks on the button, the macro values the variable and if it is equal to 1 (the fields required are selected) launches the application, otherwise shows a popup window with the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739937#M1042088</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-12-15T17:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739938#M1042089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Attached is a QVW example, It would be one option, and is nothing pretty but demos the concept.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739938#M1042089</guid>
      <dc:creator>cspencer3</dc:creator>
      <dc:date>2014-12-15T17:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739939#M1042090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems working and I am testing now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 08:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739939#M1042090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-16T08:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Launch URL based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739940#M1042091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giacomo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked exactly what I want and thanks a lot for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 09:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-URL-based-on-Conditions/m-p/739940#M1042091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-16T09:37:43Z</dc:date>
    </item>
  </channel>
</rss>

