<?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: Extension Code to write in a text file in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Extension-Code-to-write-in-a-text-file/m-p/1152706#M20720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When writing extension at times, the code does not work on the Desktop Sense app, however the same works on Browse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please test directly on thebrowser &lt;BR /&gt;&lt;A href="http://localhost:4848/hub/" title="http://localhost:4848/hub/"&gt;http://localhost:4848/hub/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 15:34:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-01T15:34:44Z</dc:date>
    <item>
      <title>Extension Code to write in a text file</title>
      <link>https://community.qlik.com/t5/App-Development/Extension-Code-to-write-in-a-text-file/m-p/1152705#M20719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;Hi&amp;nbsp; , &lt;/P&gt;&lt;P dir="ltr" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;I am trying to write an extension to save in a file.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;The same is working on chome html sample.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;But but not working on SENSE....any idea&lt;/P&gt;&lt;P dir="ltr" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;function saveTextAsFile()&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;{&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var textToSave = document.getElementById("inputTextToSave").value;&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var textToSaveAsBlob = new Blob([textToSave], {type:"text/plain"});&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var textToSaveAsURL = window.URL.createObjectURL(textToSaveAsBlob);&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fileNameToSaveAs = document.getElementById("inputFileNameToSaveAs").value;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var downloadLink = document.createElement("a");&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; downloadLink.download = fileNameToSaveAs;&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; downloadLink.innerHTML = "Download File";&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; downloadLink.href = textToSaveAsURL;&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; downloadLink.onclick = destroyClickedElement; // assume this method is available&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; downloadLink.style.display = "none";&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.body.appendChild(downloadLink);&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; downloadLink.click();&lt;/P&gt;&lt;P dir="ltr"&gt;}&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 16:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Extension-Code-to-write-in-a-text-file/m-p/1152705#M20719</guid>
      <dc:creator />
      <dc:date>2016-06-30T16:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Code to write in a text file</title>
      <link>https://community.qlik.com/t5/App-Development/Extension-Code-to-write-in-a-text-file/m-p/1152706#M20720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When writing extension at times, the code does not work on the Desktop Sense app, however the same works on Browse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please test directly on thebrowser &lt;BR /&gt;&lt;A href="http://localhost:4848/hub/" title="http://localhost:4848/hub/"&gt;http://localhost:4848/hub/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 15:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Extension-Code-to-write-in-a-text-file/m-p/1152706#M20720</guid>
      <dc:creator />
      <dc:date>2016-07-01T15:34:44Z</dc:date>
    </item>
  </channel>
</rss>

