<?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 Problem with listObjects and layout in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-listObjects-and-layout/m-p/1381994#M8230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to developing extensions, JavaScript , promises etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my extension I am creating x nbr of listObjects (specified in the property panel) using app.createList({...},function(reply) {....}).&lt;/P&gt;&lt;P&gt;I do that since I have x number of lists and do not now how to set that up in initial properties. I know I can have multiple list definitions but I do not now how many I want from time to time. Is it possible to change initial properties "on the fly"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first time Paint() is called I create my listobjects and make sure that they are not created the next time Paint() is called.&lt;/P&gt;&lt;P&gt;I am able to do so and i recieve updates from the callback whenever things change. I store that new data and then call Paint() to regenerate my layout.&amp;nbsp; I can click in my lists and select things and everything is working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least until I move over to a different sheet and back again. It looks like Sense then creates a new DefaultView with a new .$scope.$id. (works the same way in horizontal list exampel so I guess that behaviour is correct)&lt;/P&gt;&lt;P&gt;My layout is generated again as expected but if I click somewhere it will not be updated. Selections work and I can still see that callbacks delivers data to the original defaultview (Can see my print outs with .$scope.$id). The callbacks also trigger a Paint() of my old defaultview but that is not shown anywhere. Paint is not called on my new defaultview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to set my old defaultview again? How would I access that?&lt;/P&gt;&lt;P&gt;Can I get my new defaultview to listen to the callbacks I already set up and that is obviously still running in the background somewhere?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, suggestions or explanations?&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, 24 Aug 2017 16:47:31 GMT</pubDate>
    <dc:creator>fredriklarsson</dc:creator>
    <dc:date>2017-08-24T16:47:31Z</dc:date>
    <item>
      <title>Problem with listObjects and layout</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-listObjects-and-layout/m-p/1381994#M8230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to developing extensions, JavaScript , promises etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my extension I am creating x nbr of listObjects (specified in the property panel) using app.createList({...},function(reply) {....}).&lt;/P&gt;&lt;P&gt;I do that since I have x number of lists and do not now how to set that up in initial properties. I know I can have multiple list definitions but I do not now how many I want from time to time. Is it possible to change initial properties "on the fly"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first time Paint() is called I create my listobjects and make sure that they are not created the next time Paint() is called.&lt;/P&gt;&lt;P&gt;I am able to do so and i recieve updates from the callback whenever things change. I store that new data and then call Paint() to regenerate my layout.&amp;nbsp; I can click in my lists and select things and everything is working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least until I move over to a different sheet and back again. It looks like Sense then creates a new DefaultView with a new .$scope.$id. (works the same way in horizontal list exampel so I guess that behaviour is correct)&lt;/P&gt;&lt;P&gt;My layout is generated again as expected but if I click somewhere it will not be updated. Selections work and I can still see that callbacks delivers data to the original defaultview (Can see my print outs with .$scope.$id). The callbacks also trigger a Paint() of my old defaultview but that is not shown anywhere. Paint is not called on my new defaultview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to set my old defaultview again? How would I access that?&lt;/P&gt;&lt;P&gt;Can I get my new defaultview to listen to the callbacks I already set up and that is obviously still running in the background somewhere?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, suggestions or explanations?&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, 24 Aug 2017 16:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-listObjects-and-layout/m-p/1381994#M8230</guid>
      <dc:creator>fredriklarsson</dc:creator>
      <dc:date>2017-08-24T16:47:31Z</dc:date>
    </item>
  </channel>
</rss>

