@Dominic.Lerbs wrote:
Hi,
I have node based on a complex node data structure. The node template displays only some of the available data.
Now I would like to click on some panel of the node and add a separate “detail” node to the diagram which displays a table with the detail information.Let’s take this node for example:
The Products "p1 and “p2” are actually a more complex structure with additional properties in the nodeData, something like this:
{ "parameterGroups": [ { "parameters": [ { "class": "Product", "value": 32 }, { "class": "InitialStock", "value": 0 }, { "class": "CarrierCapacityProduct", "value": 1 } ] }, { "parameters": [ { "class": "InitialStock", "value": 0 }, { "class": "CarrierCapacityProduct", "value": -1 }, { "class": "Product", "value": 39 } ] } ] }Now, if the user clicks on the p1/p2 table row, I would like to display a separate node (permanently, so no adornment) with a table structure displaying the additional attributes. (Similar to the comments example).
With my current knowledge, I would copy the parameterGroups array to the new node when the row has been clicked. However, that means I would duplicate the data, and each time the data in the original node changes, I would also need to update the data in the detail node.
Is there any way to avoid copying the data? Or some other approach to handle this situation?
Posts: 1
Participants: 1
