Node id variable

I need to keep an ID (identity value from SQL) associated to each node at all times. That value can change dynamically and the Json needs to be updated with the new value.
I have a node template which includes:
the Node
a Panel
another Panel which includes:
<span =“Apple-tab-span” style=“white-space:pre”> Picture
<span =“Apple-tab-span” style=“white-space:pre”> TextBlock 1

TextBlock 2
TextBlock 3

Where can I store my ID variable that will identify each node?
Thank you

All of your application data should be on the model data object, i.e., not on the Node nor on any other GraphObject.

You can use whatever property name that you like by setting Model.nodeKeyProperty – the default is “key”.

If you want to change the ID dynamically, call Model.setKeyForNodeData.