<?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: NeXt UI - Updating Node ID in Tools</title>
    <link>https://community.cisco.com/t5/tools/next-ui-updating-node-id/m-p/4929036#M3394</link>
    <description>&lt;P&gt;If anyone was interested... I have a workaround at least for now. I register an event to detect changes to the label. I then update all the model data for the attached links. So whilst I'm not updating the NodeID directly, if the graph data is ever saved or re-generated, the ID's will be updated based off the labels. I could force a re-drawing of the graph, but it doesn't matter if a particular node is actually using it's old Node ID for the session. At least the label and the model data is correct.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 00:01:58 GMT</pubDate>
    <dc:creator>lindsayg</dc:creator>
    <dc:date>2023-09-26T00:01:58Z</dc:date>
    <item>
      <title>NeXt UI - Updating Node ID</title>
      <link>https://community.cisco.com/t5/tools/next-ui-updating-node-id/m-p/4924861#M3384</link>
      <description>&lt;P&gt;I really enjoy the NeXt framework. I've made numerous tweaks and enhancements, but I have came across a small issue. I want to be able to update a node's name. And that name is also used as it's identity for the node and corresponding links.&lt;/P&gt;&lt;P&gt;I have the following topology config...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	// Node and Link identity key attribute name
	identityKey: 'name',
	// configuration for nodes
	nodeConfig: {
		label: "model.name",
		iconType: "model.deviceType",
		color: "model.color"
	},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data-id for each node is not directly linked to the model.name. If the name is ever updated, the corresponding data-id is not changed, and that is what is used to bind links together. So if I export the data, and re-import the links are still referencing the old "targets/sources".&lt;/P&gt;&lt;P&gt;Is there a built in watcher or function to update the graph id's of objects?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 07:17:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/next-ui-updating-node-id/m-p/4924861#M3384</guid>
      <dc:creator>lindsayg</dc:creator>
      <dc:date>2023-09-18T07:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: NeXt UI - Updating Node ID</title>
      <link>https://community.cisco.com/t5/tools/next-ui-updating-node-id/m-p/4929036#M3394</link>
      <description>&lt;P&gt;If anyone was interested... I have a workaround at least for now. I register an event to detect changes to the label. I then update all the model data for the attached links. So whilst I'm not updating the NodeID directly, if the graph data is ever saved or re-generated, the ID's will be updated based off the labels. I could force a re-drawing of the graph, but it doesn't matter if a particular node is actually using it's old Node ID for the session. At least the label and the model data is correct.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 00:01:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/next-ui-updating-node-id/m-p/4929036#M3394</guid>
      <dc:creator>lindsayg</dc:creator>
      <dc:date>2023-09-26T00:01:58Z</dc:date>
    </item>
  </channel>
</rss>

