<?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 Script and text object acting differently?! Help! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411448#M153172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that seems to work in a text object but then doesn't when used in my script.&amp;nbsp; Can someone suggest a solution and or explanation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:&lt;BR /&gt;I am trying to get a list delimited by ','&amp;nbsp; inside a variable so I can use it in some sql.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression: &lt;/P&gt;&lt;TABLE width="550px"&gt;&lt;/TABLE&gt;&lt;P&gt;SET vMyVar =chr(39) &amp;amp; Concat(MY_FIELD, chr(39) &amp;amp; ', ' &amp;amp; chr(39)) &amp;amp; chr(39); &lt;/P&gt;&lt;P&gt;It blows up if you try to use LET instead of SET, but if it is copyed and pasted into a sheet object text it works fine...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 22:31:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-29T22:31:08Z</dc:date>
    <item>
      <title>Script and text object acting differently?! Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411448#M153172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that seems to work in a text object but then doesn't when used in my script.&amp;nbsp; Can someone suggest a solution and or explanation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:&lt;BR /&gt;I am trying to get a list delimited by ','&amp;nbsp; inside a variable so I can use it in some sql.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression: &lt;/P&gt;&lt;TABLE width="550px"&gt;&lt;/TABLE&gt;&lt;P&gt;SET vMyVar =chr(39) &amp;amp; Concat(MY_FIELD, chr(39) &amp;amp; ', ' &amp;amp; chr(39)) &amp;amp; chr(39); &lt;/P&gt;&lt;P&gt;It blows up if you try to use LET instead of SET, but if it is copyed and pasted into a sheet object text it works fine...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 22:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411448#M153172</guid>
      <dc:creator />
      <dc:date>2013-04-29T22:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script and text object acting differently?! Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411449#M153173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE width="550px"&gt;&lt;/TABLE&gt;&lt;P&gt;using LET gives "script object line error"&amp;nbsp; &lt;/P&gt;&lt;TABLE width="550px"&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 22:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411449#M153173</guid>
      <dc:creator />
      <dc:date>2013-04-29T22:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script and text object acting differently?! Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411450#M153174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use aggregation functions in the context of a table LOAD.&lt;/P&gt;&lt;P&gt;Try using something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMP:&lt;/P&gt;&lt;P&gt;LOAD chr(39) &amp;amp; Concat(MY_FIELD,&amp;nbsp; chr(39)&amp;amp;','&amp;amp;chr(39)&amp;nbsp; ) &amp;amp; chr(39) as ConcatTmp&lt;/P&gt;&lt;P&gt; Resident TEST;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET vMyVar = peek('ConcatTmp',-1,'TMP');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming MY_FIELD field is originating in table TEST in this sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 22:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411450#M153174</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-04-29T22:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script and text object acting differently?! Help!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411451#M153175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! It worked great!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 23:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-and-text-object-acting-differently-Help/m-p/411451#M153175</guid>
      <dc:creator />
      <dc:date>2013-04-29T23:46:38Z</dc:date>
    </item>
  </channel>
</rss>

