LinkingTool.temporaryLink and Bindings

hi,

if I do this:

goDiagram.toolManager.linkingTool.archetypeLinkData = { label: pathName };
goDiagram.toolManager.linkingTool.temporaryLink = createGoTemporaryLinkTemplate();
goDiagram.currentTool = goDiagram.toolManager.linkingTool;
goDiagram.toolManager.linkingTool.doActivate();

and in the createGoTemporaryLinkTemplate() method I create a link object that has some properties that bind to ‘label’ and also some properties that have binding with .ofModel() set…

why don’t those binding work? :(

I can live with not having bindings to archetypeLinkData… but I would much prefer to be able to have model bindings in there…

thanks

Data binding only works in those Parts that are created from model data.

You could try setting data on the temporary link that you create.

thanks… doing this:

goDiagram.toolManager.linkingTool.temporaryLink.data = $.extend({}, archetypeLinkData, goModel.modelData);

solved my problem