<?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 NeXt 'force' dataProcessor resets saved view in Tools</title>
    <link>https://community.cisco.com/t5/tools/next-force-dataprocessor-resets-saved-view/m-p/4499680#M636</link>
    <description>&lt;P&gt;I found if I save a topology from NeXt using:&lt;/P&gt;&lt;PRE&gt;save = function() {
        localStorage.setItem('topology', JSON.stringify(topology.graph().getData()));
        
    };&lt;/PRE&gt;&lt;P&gt;Then I try and load the saved data:&lt;/P&gt;&lt;PRE&gt;    load = function() {
        topology.setData(JSON.parse(localStorage.getItem('topology')));
    };&lt;/PRE&gt;&lt;P&gt;if I am using the "force" dataProcessor:&lt;/P&gt;&lt;PRE&gt;dataProcessor: 'force'&lt;/PRE&gt;&lt;P&gt;Whenever I save -&amp;gt; load the topology, even with no changes made manually, the topology will always shift or reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to load the topology without the data processor restructuring the data?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 19:05:42 GMT</pubDate>
    <dc:creator>Suterusu1337</dc:creator>
    <dc:date>2021-11-08T19:05:42Z</dc:date>
    <item>
      <title>NeXt 'force' dataProcessor resets saved view</title>
      <link>https://community.cisco.com/t5/tools/next-force-dataprocessor-resets-saved-view/m-p/4499680#M636</link>
      <description>&lt;P&gt;I found if I save a topology from NeXt using:&lt;/P&gt;&lt;PRE&gt;save = function() {
        localStorage.setItem('topology', JSON.stringify(topology.graph().getData()));
        
    };&lt;/PRE&gt;&lt;P&gt;Then I try and load the saved data:&lt;/P&gt;&lt;PRE&gt;    load = function() {
        topology.setData(JSON.parse(localStorage.getItem('topology')));
    };&lt;/PRE&gt;&lt;P&gt;if I am using the "force" dataProcessor:&lt;/P&gt;&lt;PRE&gt;dataProcessor: 'force'&lt;/PRE&gt;&lt;P&gt;Whenever I save -&amp;gt; load the topology, even with no changes made manually, the topology will always shift or reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to load the topology without the data processor restructuring the data?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 19:05:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/next-force-dataprocessor-resets-saved-view/m-p/4499680#M636</guid>
      <dc:creator>Suterusu1337</dc:creator>
      <dc:date>2021-11-08T19:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: NeXt 'force' dataProcessor resets saved view</title>
      <link>https://community.cisco.com/t5/tools/next-force-dataprocessor-resets-saved-view/m-p/4499684#M637</link>
      <description>&lt;P&gt;I added this and I think it is working:&lt;/P&gt;&lt;PRE&gt;    load = function() {
        topology.dataProcessor("")
        topology.data(JSON.parse(localStorage.getItem('topology')));
    };&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Nov 2021 19:16:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/next-force-dataprocessor-resets-saved-view/m-p/4499684#M637</guid>
      <dc:creator>Suterusu1337</dc:creator>
      <dc:date>2021-11-08T19:16:24Z</dc:date>
    </item>
  </channel>
</rss>

