<?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: Remove all data from app using .NET SDK in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895193#M3101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars-Goran, thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I my case, I want to create a template App that only contains some basic visualizations. This template App is used to create new Apps 'on the fly'. New Apps get their own dataconnection and load script. The data model of all Apps is identical (only the dataconnection and database that's being queried is different), that's why I can use a single template App with visualizations in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I'm creating an App design-time and want to remove everything from it, except for the visualizations (to keep it small and remove sensitive data and connectionstrings). The remaining App can then be used as a template to create new Apps run-time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2015 14:02:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-22T14:02:01Z</dc:date>
    <item>
      <title>Remove all data from app using .NET SDK</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895191#M3099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to remove all dataconnections, script and data from an app in Sense Desktop 1.1, so it can be used as a (small) template app that only contains visualizations. This template app can then be used to create a new app with its own dataconnection and load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the dataconnections and script is no problem, but when I use the following method without arguments to remove the data (doesn't matter if I open the app with or without data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;Task Qlik.Engine.IApp.RemoveAllData(bool confirm = false, AsyncHandle asyncHandle = null);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik.Engine.MethodInvocationException occurred&lt;/P&gt;&lt;P&gt;&amp;nbsp; HResult=-2146233074&lt;/P&gt;&lt;P&gt;&amp;nbsp; Message=Internal error [LOCERR_INTERNAL_ERROR]:Internal error()&lt;/P&gt;&lt;P&gt;&amp;nbsp; Source=mscorlib&lt;/P&gt;&lt;P&gt;&amp;nbsp; StackTrace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I've tried the same method on Sense Server 1.1, but I get the same exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then I tried to replace the load script by &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;DROP TABLE;&lt;/SPAN&gt; and use the following methods to reload the app with the updated script, but the data is not removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;Task&amp;lt;bool&amp;gt; DoReloadAsync(int mode = 0, bool partial = false, bool debug = false, AsyncHandle asyncHandle = null);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I manually reload the data, all data is removed as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug or am I using the wrong method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 08:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895191#M3099</guid>
      <dc:creator />
      <dc:date>2015-05-20T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all data from app using .NET SDK</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895192#M3100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This method was not intended to be public and is only for internal use.&lt;/P&gt;&lt;P&gt;There are several ways to delete data within an app, to help you I need to know more about your use case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Lars-Göran Book &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 14:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895192#M3100</guid>
      <dc:creator />
      <dc:date>2015-05-21T14:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all data from app using .NET SDK</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895193#M3101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars-Goran, thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I my case, I want to create a template App that only contains some basic visualizations. This template App is used to create new Apps 'on the fly'. New Apps get their own dataconnection and load script. The data model of all Apps is identical (only the dataconnection and database that's being queried is different), that's why I can use a single template App with visualizations in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I'm creating an App design-time and want to remove everything from it, except for the visualizations (to keep it small and remove sensitive data and connectionstrings). The remaining App can then be used as a template to create new Apps run-time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 14:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895193#M3101</guid>
      <dc:creator />
      <dc:date>2015-05-22T14:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all data from app using .NET SDK</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895194#M3102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you could do this with the following code:&lt;/P&gt;&lt;P&gt;var originaScript = myApp.GetScript();&lt;/P&gt;&lt;P&gt;myApp.SetScript(myApp.GetEmptyScript());&lt;/P&gt;&lt;P&gt;myApp.DoReload();&lt;/P&gt;&lt;P&gt;myApp.DoSave();&lt;/P&gt;&lt;P&gt;myApp.SetScript(originalScript);&lt;/P&gt;&lt;P&gt;myApp.DoSave();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Lars-Göran Book&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 10:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895194#M3102</guid>
      <dc:creator />
      <dc:date>2015-05-25T10:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all data from app using .NET SDK</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895195#M3103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also know why the above code didn't work earlier. I opened the app without data (noData: true).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 13:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-all-data-from-app-using-NET-SDK/m-p/895195#M3103</guid>
      <dc:creator />
      <dc:date>2015-05-28T13:34:45Z</dc:date>
    </item>
  </channel>
</rss>

