<?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: Any way to add trailing spaces i.e. pad data out in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/1600108#M44361</link>
    <description>&lt;P&gt;I'm trying to left pad the field with spaces with no luck, it keeps getting trimmed.&amp;nbsp; Any other ideas?&lt;/P&gt;&lt;P&gt;Here is what I've tried:&lt;/P&gt;&lt;P&gt;='My Label: ' &amp;amp; Repeat(' ', 20-len(MY_FIELD)) &amp;amp; MY_FIELD&lt;/P&gt;&lt;P&gt;='My Label: ' &amp;amp; Repeat(Chr(9), 20-len(MY_FIELD)) &amp;amp; MY_FIELD&lt;/P&gt;&lt;P&gt;='My Label: ' &amp;amp; Repeat(" ", 20-len(MY_FIELD)) &amp;amp; MY_FIELD&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2019 20:04:53 GMT</pubDate>
    <dc:creator>warkg</dc:creator>
    <dc:date>2019-07-08T20:04:53Z</dc:date>
    <item>
      <title>Any way to add trailing spaces i.e. pad data out</title>
      <link>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/951481#M13496</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 have a field from sql data i.e. MyField but I need it to be padded to 40 characters with trailing spaces in a chart i.e. MyFieldSSSSSSSSSSSSSSSSS&lt;/P&gt;&lt;P&gt;(where S is a space)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there are sql functions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i.e. to pad to a certain length (20, in this example): left('MyText' &amp;amp; space(20), 20)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;..but QV script does not like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know&amp;nbsp; either a script or an expression function that could achieve this please ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 07:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/951481#M13496</guid>
      <dc:creator />
      <dc:date>2015-08-19T07:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to add trailing spaces i.e. pad data out</title>
      <link>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/951482#M13497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this: MyField &amp;amp; Repeat(' ', 40 - len(MyField))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 08:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/951482#M13497</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-19T08:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to add trailing spaces i.e. pad data out</title>
      <link>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/951483#M13498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - that worked perfectly !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/951483#M13498</guid>
      <dc:creator />
      <dc:date>2015-08-19T15:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to add trailing spaces i.e. pad data out</title>
      <link>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/951484#M13499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition, I would say that sometimes repeating the character ' ' is not enough to add spaces at the left for indentation because they are trimmed and ignored. In those cases, a workaround is to repeat the tab character Chr(9) instead of ' ' to get the desired indentation. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 07:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/951484#M13499</guid>
      <dc:creator>jldengra</dc:creator>
      <dc:date>2016-05-31T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to add trailing spaces i.e. pad data out</title>
      <link>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/1600108#M44361</link>
      <description>&lt;P&gt;I'm trying to left pad the field with spaces with no luck, it keeps getting trimmed.&amp;nbsp; Any other ideas?&lt;/P&gt;&lt;P&gt;Here is what I've tried:&lt;/P&gt;&lt;P&gt;='My Label: ' &amp;amp; Repeat(' ', 20-len(MY_FIELD)) &amp;amp; MY_FIELD&lt;/P&gt;&lt;P&gt;='My Label: ' &amp;amp; Repeat(Chr(9), 20-len(MY_FIELD)) &amp;amp; MY_FIELD&lt;/P&gt;&lt;P&gt;='My Label: ' &amp;amp; Repeat(" ", 20-len(MY_FIELD)) &amp;amp; MY_FIELD&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 20:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Any-way-to-add-trailing-spaces-i-e-pad-data-out/m-p/1600108#M44361</guid>
      <dc:creator>warkg</dc:creator>
      <dc:date>2019-07-08T20:04:53Z</dc:date>
    </item>
  </channel>
</rss>

