<?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 Using Variables in Edit Script Dialog Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153186#M30326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for being concerned with my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rainer, I tried chr(39) and used the variable with $(), it really works thanks.&lt;/P&gt;&lt;P&gt;Tauqueer, I tried your solution, when I write just the variable name without $(), it shows the variable name but not its content. Thanks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result I will use chr(39) with $().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 07:52:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-18T07:52:01Z</dc:date>
    <item>
      <title>Using Variables in Edit Script Dialog Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153183#M30323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can store the Path Names on variables and successfully use them. &lt;B&gt;&lt;/B&gt;vData = 'D:\QlikviewData';&lt;/P&gt;&lt;H4&gt;let&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to pass parameters to a stored procedures, it does not work. Ex:&lt;/P&gt;&lt;P&gt;let mailTo = &lt;A href="mailto:'tugba@kuveytturk'"&gt;'tugba@kuveytturk'&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;let From = &lt;A href="mailto:'server@kuveytturk'"&gt;'server@kuveytturk'&lt;/A&gt;&lt;/P&gt;&lt;P&gt;let body = ' An error occured'&lt;/P&gt;&lt;P&gt;let subject = 'MIS Reload Error';&lt;/P&gt;&lt;H4&gt;SQL EXECUTE SP_SendMail @From =$(From) , @To=$(mailTo), @Subject$(subject),@Body=$(body)&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;But this works when I send the parameters directly, without storing the values at variables. EXECUTE SP_SendMail @From = &lt;A href="mailto:'server@kuveytturk'"&gt;'server@kuveytturk'&lt;/A&gt;, @To= &lt;A href="mailto:'tugba@kuveytturk'"&gt;'tugba@kuveytturk'&lt;/A&gt;, @Subject='MIS Reload Error',@Body=' An error occured';&lt;/H4&gt;&lt;H4&gt;SQL&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 13:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153183#M30323</guid>
      <dc:creator />
      <dc:date>2010-05-17T13:22:00Z</dc:date>
    </item>
    <item>
      <title>Using Variables in Edit Script Dialog Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153184#M30324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;Let vName = Chr(39)&amp;amp;'Rainer'&amp;amp;Chr(39);&lt;/P&gt;&lt;P&gt;The inverted commas then are part of the variable value.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 13:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153184#M30324</guid>
      <dc:creator />
      <dc:date>2010-05-17T13:47:06Z</dc:date>
    </item>
    <item>
      <title>Using Variables in Edit Script Dialog Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153185#M30325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;we use $ sign with variables only when we want to evaluate the contents on the right hand side of = sign (as in mailTo = &lt;A href="mailto:'tugba@kuveytturk'"&gt;'tugba@kuveytturk'&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but here u just need the contents of that variable ,so just use name of variable without using $ sign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let mailTo = &lt;A href="mailto:'tugba@kuveytturk'"&gt;'tugba@kuveytturk'&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;let From = &lt;A href="mailto:'server@kuveytturk'"&gt;'server@kuveytturk'&lt;/A&gt;&lt;/P&gt;&lt;P&gt;let body = ' An error occured'&lt;/P&gt;&lt;P&gt;let subject = 'MIS Reload Error';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt; &lt;STRONG&gt;EXECUTE&lt;/STRONG&gt; SP_SendMail @From =From , @To=mailTo, @Subject subject,@Body=body&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 15:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153185#M30325</guid>
      <dc:creator />
      <dc:date>2010-05-17T15:00:44Z</dc:date>
    </item>
    <item>
      <title>Using Variables in Edit Script Dialog Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153186#M30326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for being concerned with my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rainer, I tried chr(39) and used the variable with $(), it really works thanks.&lt;/P&gt;&lt;P&gt;Tauqueer, I tried your solution, when I write just the variable name without $(), it shows the variable name but not its content. Thanks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result I will use chr(39) with $().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 07:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153186#M30326</guid>
      <dc:creator />
      <dc:date>2010-05-18T07:52:01Z</dc:date>
    </item>
    <item>
      <title>Using Variables in Edit Script Dialog Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153187#M30327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have one more question.&lt;/P&gt;&lt;P&gt;When I use ScriptError once, then I can not see its content any more.&lt;/P&gt;&lt;P&gt;For example if I compare its value, then this means I can not see what is inside it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; wrongColoumnName&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; &lt;I&gt;$(vData)&lt;/I&gt; Datasource.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;IF&lt;/B&gt; ScriptError &amp;lt;&amp;gt; 0 &lt;B&gt;THEN&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;let&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;error = 'An error has occured';&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;After I do this comparison the value inside ScriptError is dissapeared. ( ScriptError &amp;lt;&amp;gt; 0 )&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 15:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153187#M30327</guid>
      <dc:creator />
      <dc:date>2010-05-18T15:59:34Z</dc:date>
    </item>
    <item>
      <title>Using Variables in Edit Script Dialog Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153188#M30328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use Variables and $-sign expansion, you need to use single quotes for those parameters that are supposed to look like strings.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;If you need to create a condition like: TransYear = 2010, using a variable, you can use $(vYear) . However, for conditions like :&lt;/P&gt;&lt;P&gt;Product = 'Shoes', you need to enclose your $()-expansion in a set of single quotes:&lt;/P&gt;&lt;P&gt;Product = '$(vMyProduct)'&lt;/P&gt;&lt;P&gt;no need to tinker with CHR(39), in this case QlikView works well with the simple pair of single qoutes...&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 16:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153188#M30328</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-05-18T16:05:40Z</dc:date>
    </item>
    <item>
      <title>Using Variables in Edit Script Dialog Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153189#M30329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have one more question.&lt;/P&gt;&lt;P&gt;When I use ScriptError once, then I can not see its content any more.&lt;/P&gt;&lt;P&gt;For example if I compare its value, then this means I can not see what is inside it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; wrongColoumnName&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; &lt;I&gt;$(vData)&lt;/I&gt; Datasource.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;B&gt;IF&lt;/B&gt; ScriptError &amp;lt;&amp;gt; 0 &lt;B&gt;THEN&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;let&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;error = 'An error has occured';&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;After I do that comparison ( ScriptError &amp;lt;&amp;gt; 0 ) the value inside ScriptError is dissapeared.&lt;/H4&gt;&lt;H4&gt;I can not show it in a listbox&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 06:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153189#M30329</guid>
      <dc:creator />
      <dc:date>2010-05-20T06:49:45Z</dc:date>
    </item>
    <item>
      <title>Using Variables in Edit Script Dialog Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153190#M30330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean that when I use &lt;STRONG&gt;IF ScriptError &amp;lt;&amp;gt; 0&lt;/STRONG&gt; then the value of ScriptError becomes null.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7356.scripterror.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7356.scripterror.png" /&gt;&lt;/A&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6675.scripterror.png"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 08:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-Edit-Script-Dialog-Problem/m-p/153190#M30330</guid>
      <dc:creator />
      <dc:date>2010-05-21T08:49:01Z</dc:date>
    </item>
  </channel>
</rss>

