<?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 Variables combining data from script and from GUI in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-combining-data-from-script-and-from-GUI/m-p/896780#M312099</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 know I can define variables in the script so that they are populated dynamically on the GUI, based on the user's selections.&lt;/P&gt;&lt;P&gt;But now I have to combine both ways:&lt;/P&gt;&lt;P&gt;- I have to assemble an email_distribution_list from names in an Excel_file;&lt;/P&gt;&lt;P&gt;- These lists go into a button to trigger an email (like a URL); That URL can take some information for the header - and that piece of&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; information is based on the user's selections, thus it can be populated only on the GUI.&lt;/P&gt;&lt;P&gt;Sounds easy - but I cannot get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code to define variables for populating with values from the GUI is like this&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; SET v_myvariable = = Getfieldselections(field1); &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;A URL for an email to be triggered by a button on the GUI has to look like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt; 'mailto:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:firstname.lastname@domain.com"&gt;firstname.lastname@domain.com&lt;/A&gt;&lt;SPAN&gt;?subject=bla bla blub;' &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick is, the email can also take some information from the app, thus it can look like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt; 'mailto:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:firstname.lastname@domain.com"&gt;firstname.lastname@domain.com&lt;/A&gt;&lt;SPAN&gt;?subject=bla bla blub Info ' &amp;amp; Info; &amp;lt;&amp;lt; (where Info is the name of a field and because of the user's selections, there is only one value to that field)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; I cannot seem to be able to combine these in the script.&lt;/P&gt;&lt;P&gt;I am trying to do this, first defining the GUI_variable&lt;/P&gt;&lt;P&gt;- SET v_myvar = = Info;&lt;/P&gt;&lt;P&gt;... and then appending this to my email_distribution_list&lt;/P&gt;&lt;P&gt;- LET v_email_list = 'mailto:[valid_and_tested_list]' &amp;amp; '?subject=bla bla blub ; Info ' &amp;amp; &lt;EM&gt;Info &lt;/EM&gt;&amp;amp; ';'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone understand what's wrong with this syntax? I guess it's to do with the '=' that I need for any variables that are supposed to be populated on the GUI; But I don't know how to get rid of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2015 13:50:23 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-06-02T13:50:23Z</dc:date>
    <item>
      <title>Variables combining data from script and from GUI</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-combining-data-from-script-and-from-GUI/m-p/896780#M312099</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 know I can define variables in the script so that they are populated dynamically on the GUI, based on the user's selections.&lt;/P&gt;&lt;P&gt;But now I have to combine both ways:&lt;/P&gt;&lt;P&gt;- I have to assemble an email_distribution_list from names in an Excel_file;&lt;/P&gt;&lt;P&gt;- These lists go into a button to trigger an email (like a URL); That URL can take some information for the header - and that piece of&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; information is based on the user's selections, thus it can be populated only on the GUI.&lt;/P&gt;&lt;P&gt;Sounds easy - but I cannot get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code to define variables for populating with values from the GUI is like this&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; SET v_myvariable = = Getfieldselections(field1); &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;A URL for an email to be triggered by a button on the GUI has to look like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt; 'mailto:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:firstname.lastname@domain.com"&gt;firstname.lastname@domain.com&lt;/A&gt;&lt;SPAN&gt;?subject=bla bla blub;' &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick is, the email can also take some information from the app, thus it can look like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt; 'mailto:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:firstname.lastname@domain.com"&gt;firstname.lastname@domain.com&lt;/A&gt;&lt;SPAN&gt;?subject=bla bla blub Info ' &amp;amp; Info; &amp;lt;&amp;lt; (where Info is the name of a field and because of the user's selections, there is only one value to that field)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; I cannot seem to be able to combine these in the script.&lt;/P&gt;&lt;P&gt;I am trying to do this, first defining the GUI_variable&lt;/P&gt;&lt;P&gt;- SET v_myvar = = Info;&lt;/P&gt;&lt;P&gt;... and then appending this to my email_distribution_list&lt;/P&gt;&lt;P&gt;- LET v_email_list = 'mailto:[valid_and_tested_list]' &amp;amp; '?subject=bla bla blub ; Info ' &amp;amp; &lt;EM&gt;Info &lt;/EM&gt;&amp;amp; ';'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone understand what's wrong with this syntax? I guess it's to do with the '=' that I need for any variables that are supposed to be populated on the GUI; But I don't know how to get rid of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 13:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-combining-data-from-script-and-from-GUI/m-p/896780#M312099</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-02T13:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variables combining data from script and from GUI</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-combining-data-from-script-and-from-GUI/m-p/896781#M312100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm ... I have found a workaround insofar as some more code can be added to this on the GUI;&lt;/P&gt;&lt;P&gt;I'd still like to know how this could be done ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 13:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-combining-data-from-script-and-from-GUI/m-p/896781#M312100</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-02T13:54:49Z</dc:date>
    </item>
  </channel>
</rss>

