Mindmap and Scriptcase - sample project not updating

Hi there,
Scriptcase provides a sample form integrated with jsmind.js which works well, except that it does not allow you to save the information on the DB.
I was wondering if anyone has fixed this issue before. Any idea what the problem could be?

Many thanks,
Javier

Hello, you have to access through a method, in the form, a webservices that is available in json, from there it sends you the data you want to capture. It does the same thing that GoogleMaps does.

Regards.

I know thank you. In fact the sample provided by Scriptcase works wvery well except that it does not save changes. Anyone has experienced this before?
Any workaround?
Many thanks,

The data is only updated if you MAKE CHANGES to the STRUCTURE of the tree.
That is if you have to add or delete nodes.

If you ONLY change the label, it does NOT update the database.

The workaround is:

  1. First change the label of a node that you wish to change.
  2. Add a child node to ANOTHER node. (The node that you changed is disabled).
  3. Save the record.

Only then you will be able to add a child of the first node.

Excellent, thank you!

Found a better solution:

Edit the Javascript Method, ‘drawChart’.
Add ONE line
refreshMindTree();
so that the code is as below. This will update the data when you click anywhere within the map area, without needing to change the structure as described in my previous post.

New Code with the extra line:

// Click outside to hide menu
$(‘html, body’).click(function(){
refreshMindTree();
$(‘jmnode.selected .node-menu’).removeClass(‘active’)
})