<?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: In QlikView or Sense what is equivalent to a String builder in Java? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/In-QlikView-or-Sense-what-is-equivalent-to-a-String-builder-in/m-p/1167641#M21291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can think of two ways to achieve this right of the bat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use a variable in the loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="color: #303336; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMyVar &lt;/SPAN&gt;= '';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;For i = 1 to 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;vMyVar = $(vMyVar) &amp;amp; ' ' &amp;amp; Peek('City', $(i), 'weatherdata');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;Trace $(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vMyVar&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;2. Use Concat() to get all text rows of one table into the same row. Perhaps you need to merge your city and number field first and then concat:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2796"&gt;The Concat Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 07:18:22 GMT</pubDate>
    <dc:creator>kjhertz</dc:creator>
    <dc:date>2016-08-11T07:18:22Z</dc:date>
    <item>
      <title>In QlikView or Sense what is equivalent to a String builder in Java?</title>
      <link>https://community.qlik.com/t5/App-Development/In-QlikView-or-Sense-what-is-equivalent-to-a-String-builder-in/m-p/1167640#M21290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Java it is easy to drop this code inside a for loop and then get a nicely concatenated string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;a &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;StringBuilder&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;append&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;a&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;append&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;b&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;toString&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;();&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;However I haven't been able to do the same in Qlik Sene. I am trying to achieve something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;Let vMyVar = 'some text ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;For i = 1 to 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;vMyVar += i + Peek('City', $(i), 'weatherdata');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;Trace $(&lt;SPAN style="color: #303336; font-size: 13.3333px;"&gt;vMyvar &lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;Where &lt;SPAN style="color: #303336; font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #303336; font-size: 13.3333px;"&gt;vMyvar&lt;/SPAN&gt;&lt;SPAN style="color: #303336; font-size: 13.3333px;"&gt;) must be in the end =&amp;gt; &lt;SPAN style="color: #303336; font-size: 13.3333px;"&gt;some text&lt;/SPAN&gt; 1 France&lt;/SPAN&gt; 2 Madrid 3 Lund&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;I hope this is clear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;Many thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 20:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-QlikView-or-Sense-what-is-equivalent-to-a-String-builder-in/m-p/1167640#M21290</guid>
      <dc:creator />
      <dc:date>2016-08-10T20:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: In QlikView or Sense what is equivalent to a String builder in Java?</title>
      <link>https://community.qlik.com/t5/App-Development/In-QlikView-or-Sense-what-is-equivalent-to-a-String-builder-in/m-p/1167641#M21291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can think of two ways to achieve this right of the bat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use a variable in the loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="color: #303336; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMyVar &lt;/SPAN&gt;= '';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;For i = 1 to 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;vMyVar = $(vMyVar) &amp;amp; ' ' &amp;amp; Peek('City', $(i), 'weatherdata');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;Trace $(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vMyVar&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;2. Use Concat() to get all text rows of one table into the same row. Perhaps you need to merge your city and number field first and then concat:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2796"&gt;The Concat Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 07:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-QlikView-or-Sense-what-is-equivalent-to-a-String-builder-in/m-p/1167641#M21291</guid>
      <dc:creator>kjhertz</dc:creator>
      <dc:date>2016-08-11T07:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: In QlikView or Sense what is equivalent to a String builder in Java?</title>
      <link>https://community.qlik.com/t5/App-Development/In-QlikView-or-Sense-what-is-equivalent-to-a-String-builder-in/m-p/1167642#M21292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works give one small correction in the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;let &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; color: #303336;"&gt;vMyVar &lt;/SPAN&gt;= '';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;For i = 1 to 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;vMyVar = '$(vMyVar)' &amp;amp; ' ' &amp;amp; Peek('City', $(i), 'weatherdata');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;Trace $(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vMyVar&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;Note the single quotation around &lt;SPAN style="color: #303336; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;$(vMyVar).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;I will still test it later with real data from the net and see what happens. &lt;/SPAN&gt;&lt;SPAN style="color: #303336; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt; line-height: 1.5em;"&gt;I wished the Qlik syntax was more flexible like Java, JS or even action script, not sure into which category to put it &lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303336; font-size: 13.3333px;"&gt;Thank you very much for your answer it was helpful and confirm something similar I found yesterday night.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 10:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-QlikView-or-Sense-what-is-equivalent-to-a-String-builder-in/m-p/1167642#M21292</guid>
      <dc:creator />
      <dc:date>2016-08-11T10:11:54Z</dc:date>
    </item>
  </channel>
</rss>

