Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

CommitTransaction method is different in 1.7.16 and 1.7.23, and leads to a problem

$
0
0

@CL.Peter wrote:

Hi all,
When I use the following code in the 1.7.16 release, UndoManager.history will remember the name of Diagram.commitTransaction I have set. But in the 1.7.23 release, UndoManager.history return "Layout" instead of my setting.

    Diagram.startTransaction("ChangeModelAndShow"+aUsefulList);
    //In this transaction, I will append links and nodes
    Model.addNodeDataCollection(this.modelControler.newNodeDataList);
    Model.addLinkDataCollection(this.modelControler.newLinkDataList);
    Diagram.commitTransaction("ChangeModelAndShow"+aUsefulList);

The wrong result in 1.7.23:( I did above code two times, one of which is just show one node, another series is append node and links )

The correct result in 1.7.16:( I did above code two times, one of which is just show one node, another series is append node and links )

Thank you for your time and I look forward to your reply!
Best Regards.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles