<?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 object from the dev-hub / Remove promise in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408707#M8608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This feature not been implemented in dev-hub. The editor looks for the original content and any added content by the user will not be considered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2017 17:52:36 GMT</pubDate>
    <dc:creator>bgk</dc:creator>
    <dc:date>2017-12-04T17:52:36Z</dc:date>
    <item>
      <title>Remove object from the dev-hub / Remove promise</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408706#M8607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I delete a qlik object from the dev-hub, any promise that is right next to it it doesn't get deleted, and throws me syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;app.getObject('object-01', 'AdjhthZ').then(function(){&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('hey you!');&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i delete this object right from the 'preview' screen, it doesn't remove the '.then(....' line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, deleting from the preview, it keeps like this:&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;.then(function(){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('hey you!');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;});&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to achieve this 'automatic' delete?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2017 19:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408706#M8607</guid>
      <dc:creator>thpessato</dc:creator>
      <dc:date>2017-11-30T19:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove object from the dev-hub / Remove promise</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408707#M8608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This feature not been implemented in dev-hub. The editor looks for the original content and any added content by the user will not be considered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 17:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408707#M8608</guid>
      <dc:creator>bgk</dc:creator>
      <dc:date>2017-12-04T17:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove object from the dev-hub / Remove promise</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408708#M8609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Do you think it would interesting to develop this in the future? Since it's a property provided by the getObject method and it doesn't makes sense to keep the '.then(...' in the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 18:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408708#M8609</guid>
      <dc:creator>thpessato</dc:creator>
      <dc:date>2017-12-04T18:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove object from the dev-hub / Remove promise</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408709#M8610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jonas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just realized that the dev-hub doesn't actually look for the original content like you said, but it searches for the first occurrence of '&lt;STRONG&gt;;&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you remove a object that is just like this:&lt;/P&gt;&lt;P&gt;app.getObject('obj1', 'objectId').then(function(){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('hey')&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will remove all the lines, including console.log and the '})'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you remove&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;app.getObject('obj1', 'objectId').then(function(){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('hey');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will remove the two first lines, and the last will remain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 18:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408709#M8610</guid>
      <dc:creator>thpessato</dc:creator>
      <dc:date>2017-12-04T18:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remove object from the dev-hub / Remove promise</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408710#M8611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right. The intention is to look for the original content but since it is using regexp it find close matches. I will add your suggestion as an improvement suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 06:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Remove-object-from-the-dev-hub-Remove-promise/m-p/1408710#M8611</guid>
      <dc:creator>bgk</dc:creator>
      <dc:date>2017-12-05T06:34:41Z</dc:date>
    </item>
  </channel>
</rss>

