<?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: Changing text via the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137653#M752001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use a Mapping load to get this resolved&lt;/P&gt;&lt;P&gt;&lt;A href="http://livingqlikview.com/livingqlik-roots-the-complete-guide-to-qlikview-mapping-load/" title="http://livingqlikview.com/livingqlik-roots-the-complete-guide-to-qlikview-mapping-load/"&gt;LivingQlik Roots: The Complete Guide to QlikView Mapping Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 11:04:49 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-10-25T11:04:49Z</dc:date>
    <item>
      <title>Changing text via the script</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137651#M751999</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;Can someone tell me how to change the text of something in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wanting to make several slight changes to a column for example I would like to make such changes like "Assets London" to "Ass London" and "Assets Manchester" to "Ass Manchester" without having to create another column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137651#M751999</guid>
      <dc:creator>beneldridge</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text via the script</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137652#M752000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben, you can use a mapping table, this is a table with 2 columns: one iis the value to search and the 2nd the value returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapText:&lt;/P&gt;&lt;P&gt;LOAD * inline [&lt;/P&gt;&lt;P&gt;TextFrom, TextTo&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assets London, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ass London&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Assets Manchester, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ass Manchester&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And use applymap when loading the text field:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Applymap('mapText', TextField) as TextField&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If some value is not found in the mapText table the default value is kept.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 10:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137652#M752000</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-10-25T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text via the script</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137653#M752001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use a Mapping load to get this resolved&lt;/P&gt;&lt;P&gt;&lt;A href="http://livingqlikview.com/livingqlik-roots-the-complete-guide-to-qlikview-mapping-load/" title="http://livingqlikview.com/livingqlik-roots-the-complete-guide-to-qlikview-mapping-load/"&gt;LivingQlik Roots: The Complete Guide to QlikView Mapping Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137653#M752001</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-25T11:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text via the script</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137654#M752002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting back to me, I tried adding the below to my coding but it did not like it. I am pretty much new to Qlikview so it is pretty alien to me, but enjoying the challenge. Are you able to help me some more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&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;LOAD * inline [&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;TextFrom, TextTo&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Assets London, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Ass London&lt;/SPAN&gt;&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Assets Manchester, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Ass Manchester&lt;/SPAN&gt;&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137654#M752002</guid>
      <dc:creator>beneldridge</dc:creator>
      <dc:date>2018-10-25T11:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text via the script</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137655#M752003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you missed the Mapping keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MappingTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TextFrom, TextTo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Assets London, Ass London&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Assets Manchester, Ass Manchester&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137655#M752003</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-25T11:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text via the script</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137656#M752004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha ha, that's a really bad abbrv. for Assets! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137656#M752004</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2018-10-25T11:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text via the script</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137657#M752005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still getting a script error saying: Field Not Found - &amp;lt;Business Unit&amp;gt; followed by the script I tried to add?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137657#M752005</guid>
      <dc:creator>beneldridge</dc:creator>
      <dc:date>2018-10-25T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text via the script</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137658#M752006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option would be to use &lt;STRONG&gt;replace()&lt;/STRONG&gt; to change 'Assets' to 'Ass'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(your_field_name, 'Assets', 'Ass') as your_field_name,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .... ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also nest multiple replace statements together&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(replace(your_field_name, 'Assets', 'Ass'), 'AAA', XXX') as your_field_name,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are lots of changes, then the mapping table method is easier to maintain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-text-via-the-script/m-p/137658#M752006</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-10-25T12:13:48Z</dc:date>
    </item>
  </channel>
</rss>

