<?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: Creating and executing dynamic text-file on button click in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505939#M189162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just go for macro and call an action to run Macro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2014 09:13:00 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2014-01-14T09:13:00Z</dc:date>
    <item>
      <title>Creating and executing dynamic text-file on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505938#M189161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I navigate through a document using one ID at a time. This code will give me the according ID:&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Order={'=rank(-Order)=$(vRank)'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a text-file that has a mainly static structure passing the current ID to the text. Actually this text file has a extension that once clicked, opens up a program with the given search text.&lt;/P&gt;&lt;P&gt;Now ideally the text-file wouldn't need to actually be saved but only created (and removed) when the button was clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of how the text might look:&lt;/P&gt;&lt;P&gt;search&lt;/P&gt;&lt;P&gt;doc_type=ABC&lt;/P&gt;&lt;P&gt;ID=&lt;STRONG&gt;007&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here only the number behind ID= needs to be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this code gives me above text:&lt;/P&gt;&lt;P&gt;='search' &amp;amp; Chr(10) &amp;amp; 'doc_type=ABC' &amp;amp; Chr(10)&lt;/P&gt;&lt;P&gt;&amp;amp;'ID='&amp;amp; only({&amp;lt;Order={'=rank(-Order)=$(vRank)'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how could I create the file and use it as a variable?&lt;/P&gt;&lt;P&gt;I'm guessing macros are the only way here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manually I can get it to work when using the Launch Action and simply paste a valid filepath to the filename property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 09:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505938#M189161</guid>
      <dc:creator />
      <dc:date>2014-01-14T09:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating and executing dynamic text-file on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505939#M189162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just go for macro and call an action to run Macro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 09:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505939#M189162</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-01-14T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating and executing dynamic text-file on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505940#M189163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should add that till now I was able to avoid macro coding hence I don't know how to start &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, and I need it to work in the browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small sample would help.&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>Tue, 14 Jan 2014 10:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505940#M189163</guid>
      <dc:creator />
      <dc:date>2014-01-14T10:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating and executing dynamic text-file on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505941#M189164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still looking for a solution here. Anybody?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 07:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505941#M189164</guid>
      <dc:creator />
      <dc:date>2014-01-22T07:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating and executing dynamic text-file on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505942#M189165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thorsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do you pass the created text on?&lt;/P&gt;&lt;P&gt;Could you just create two variables - one with the basic text including a second which contains your code giving the ID:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;search&lt;/P&gt;&lt;P&gt;doc_type=ABC&lt;/P&gt;&lt;P&gt;ID=&lt;STRONG&gt;$(varID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afterwards you pass the first variable on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 08:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505942#M189165</guid>
      <dc:creator />
      <dc:date>2014-01-22T08:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating and executing dynamic text-file on button click</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505943#M189166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris that's what I had in mind - my problem is more the second part: somehow creating the file and then trigger the external program.&lt;/P&gt;&lt;P&gt;Maybe it's possible to write the first variable to a file on disk and execute that path so that the content of the file changes when variable2 also changes. But VB isn't my friend &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 14:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-and-executing-dynamic-text-file-on-button-click/m-p/505943#M189166</guid>
      <dc:creator />
      <dc:date>2014-01-22T14:10:58Z</dc:date>
    </item>
  </channel>
</rss>

