Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7417

Update node binding when data of other node changes

$
0
0

@Dominic.Lerbs wrote:

Hello,

let’s assume I have node data as follows:

"nodeDataArray": [{
                "id": 1
		"category": "a",
		"value": 5
	}, {
                "id": 2
		"category": "b",
	}
]

Now I would like to create a Binding (e.g. for displaying some text) for the Node with id 2 which should update whenever the “value” property of node with id 1 changes.
What would be the best way to do so?
I couldn’t find an option using a binding, as the binding cannot(?) be bound to data of other nodes.
I could subscribe to the onModelChanged event and then manually call updateTargetBindings(), but in this case, how do I get the id of the node which triggered the event?

Which solution would you suggest?

Best regards,
Dominic

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7417

Trending Articles