Updating link data. Unique link key

Hi!

In our app user can create links between nodes. When link is created app sends a request to the server and receives more data which should be displayed on link.

I’m trying to use diagram.model.makeUniqueLinkKeyFunction in order to have keys on every link and update its’ data.

However I don’t see the function provided to makeUniqueLinkKeyFunction being called when I’m loading model or creating new links with addLinkData or linkingTool.

Have you set GraphLinksModel.linkKeyProperty to the name of the property you’d like each link data object to have holding its identifier?

Doing so will ensure that every time a link data object is added to the model, that property will get a unique identifier.

Oh, yes. Now I see. I should set it to ‘key’. :)