<?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 App.SetScript clearing my load script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/App-SetScript-clearing-my-load-script/m-p/1790407#M64348</link>
    <description>&lt;P&gt;I have a visual studio App that extracts, information about a Qlik Sense "App".&lt;/P&gt;&lt;P&gt;One of the options extracts the load script into a multiline textbox where you can then edit. Once happy I have a button that calls App.Setscript(textbox.text) when this executes it either clears everything out of my apps load script or in some cases simply retains the Main Tab. I have tried variables that are defined by calling the app.getscript or specifically as string and in all instances the same thing happens. If I simply set the string to Testing then the word testing appears.&lt;BR /&gt;&lt;BR /&gt;Are their control characters that are impacting, do I need to decalre the variable as something other than string or object based on a call (which if I am not mistaken would also set the object to string)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any ideas&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 08:53:04 GMT</pubDate>
    <dc:creator>PRB6803</dc:creator>
    <dc:date>2021-04-02T08:53:04Z</dc:date>
    <item>
      <title>App.SetScript clearing my load script</title>
      <link>https://community.qlik.com/t5/App-Development/App-SetScript-clearing-my-load-script/m-p/1790407#M64348</link>
      <description>&lt;P&gt;I have a visual studio App that extracts, information about a Qlik Sense "App".&lt;/P&gt;&lt;P&gt;One of the options extracts the load script into a multiline textbox where you can then edit. Once happy I have a button that calls App.Setscript(textbox.text) when this executes it either clears everything out of my apps load script or in some cases simply retains the Main Tab. I have tried variables that are defined by calling the app.getscript or specifically as string and in all instances the same thing happens. If I simply set the string to Testing then the word testing appears.&lt;BR /&gt;&lt;BR /&gt;Are their control characters that are impacting, do I need to decalre the variable as something other than string or object based on a call (which if I am not mistaken would also set the object to string)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any ideas&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/App-SetScript-clearing-my-load-script/m-p/1790407#M64348</guid>
      <dc:creator>PRB6803</dc:creator>
      <dc:date>2021-04-02T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: App.SetScript clearing my load script</title>
      <link>https://community.qlik.com/t5/App-Development/App-SetScript-clearing-my-load-script/m-p/1790448#M64349</link>
      <description>&lt;P&gt;Further to the above the more I test the more it looks like it is something to do with getting the text from the textbox control itself. I have copied it into a string variable also with no joy. If I do a replace on certain words in what comes from getscript without interference of a textbox then the setscript works as it does when in the text variable I hard code text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 10:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/App-SetScript-clearing-my-load-script/m-p/1790448#M64349</guid>
      <dc:creator>PRB6803</dc:creator>
      <dc:date>2021-03-11T10:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: App.SetScript clearing my load script</title>
      <link>https://community.qlik.com/t5/App-Development/App-SetScript-clearing-my-load-script/m-p/1790462#M64350</link>
      <description>&lt;P&gt;I deleted my routine and wrote from scratch and it seems to be working now, I tried all sorts, Unicode, clean up of none standard ascii characters.&lt;BR /&gt;Not sure where or what was different however the SetScript appears to be fine&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 11:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/App-SetScript-clearing-my-load-script/m-p/1790462#M64350</guid>
      <dc:creator>PRB6803</dc:creator>
      <dc:date>2021-03-11T11:10:30Z</dc:date>
    </item>
  </channel>
</rss>

