<?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: RTF presentation in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346648#M573584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried the text () but no luck!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 09:47:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-28T09:47:48Z</dc:date>
    <item>
      <title>RTF presentation in table</title>
      <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346644#M573580</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 column in sql database as RTF, i want to show this column in plain table in Qlikview.&lt;/P&gt;&lt;P&gt;How to convert it to string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 05:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346644#M573580</guid>
      <dc:creator />
      <dc:date>2012-07-12T05:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: RTF presentation in table</title>
      <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346645#M573581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; u can make use of &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ord() or chr()&amp;nbsp; functions &lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&amp;nbsp; ord('R') &lt;/P&gt;&lt;P&gt;&amp;nbsp; result- returns number 82&lt;/P&gt;&lt;P&gt;&amp;nbsp; chr(82) returns R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vaibhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 05:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346645#M573581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T05:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: RTF presentation in table</title>
      <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346646#M573582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks vibhav for your reply,&lt;/P&gt;&lt;P&gt;one of the values in the field is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 8pt;"&gt;7B5C727466315C616E73695C616E7369637067313235325C64656666305C6465666C616E67313033337B5C666F6E7474626C7B5C66305C666E696C5C666368617273657430204D6963726F736F66742053616E732053657269663B7D7D0D0A5C766965776B696E64345C7563315C706172645C66305C66733137205B41627261722041686D61645D5C7061720D0A546869732061637469766974792068617320616C7265616479206265656D20636F6D706C657465642C20776520646F20756E6465727374616E642020776879206974207374696C6C20686572655C7061720D0A5C7061720D0A7D0D0A00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 8pt;"&gt;Can u please tell me what fuction to apply to convert it in text format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 06:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346646#M573582</guid>
      <dc:creator />
      <dc:date>2012-07-12T06:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: RTF presentation in table</title>
      <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346647#M573583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; u can use text &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text() funtcion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 06:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346647#M573583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-17T06:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: RTF presentation in table</title>
      <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346648#M573584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried the text () but no luck!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 09:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346648#M573584</guid>
      <dc:creator />
      <dc:date>2012-08-28T09:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: RTF presentation in table</title>
      <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346649#M573585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Were you able to convert RTF into plain text? Any chance you can share your script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 18:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346649#M573585</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2013-01-09T18:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: RTF presentation in table</title>
      <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346650#M573586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi All,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am beginner with QlikView and I had to face a challenge of extracting the plain text by parsing&amp;nbsp; RTF/RichText. Seems to be an easy problem and the solution is even easier ,but it took me some time to arrive at the solution, hence i would like to share it with the community.&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I created a custom function in QlikView&amp;nbsp; by writing a JScript&amp;nbsp; in the Edit Module (CTRL +M) space. The function is as shown below &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; function convertToPlain(rtf) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;{&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtf = rtf.replace(/\\par&lt;D&gt;?/g, "");&lt;/D&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return rtf.replace(/&lt;STRONG&gt;\{\\[^{}]+;\}|[{}]|\\\n?[A-Za-z]+\n?(?:-?\d+)?[ ]?|[{\\\*}]/g&lt;/STRONG&gt;, "");&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; }&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;All this function does is replaces the string which matches the regex expression marked in bold with a empty string&amp;nbsp; "" . I am sure that some of you can write a better Regex Expression, but this was the one which worked for me(there are lot of posts where you find different regex expression which might work for you but you need to do thorough testing). You can use websites such as &lt;A href="https://regex101.com/" title="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;‌ to build your own Regex Exp and test it. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now all&amp;nbsp; you have to do is to call this function in your load script as shown below&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;convertToPlain&lt;/SPAN&gt;(&amp;lt;YourRTFColumn&amp;gt;) from &amp;lt;YourSource&amp;gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please feel free to contribute if you think there is a better way to do it or someone wants to add on to this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 18:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346650#M573586</guid>
      <dc:creator />
      <dc:date>2017-05-05T18:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: RTF presentation in table</title>
      <link>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346651#M573587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I&amp;nbsp; am trying to understand how you did this. What if this was your RTF output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}\viewkind4\uc1\pard\lang1033\f0\fs16\par\parRing stedet F\'d8R utr.\par\parK-pers varsles ETTER utr.\par\parUtr. v/ Vakt-Service\par\par\'c5pningstider:\par\parVarsle inst. ved feil:\parL\'e5ne n\'f8kkel til inst:\parBlokkering v/:\parForsikringsselskap:\parInstruks fra: 13/12/2012\par\par} &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 13:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RTF-presentation-in-table/m-p/346651#M573587</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2017-05-10T13:30:44Z</dc:date>
    </item>
  </channel>
</rss>

