Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Save and load diagram in same state (Read 3124 times)
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Save and load diagram in same state
Sep 5th, 2019 at 11:02am
Print Post  
Hi,
Is it possible to save and load the diagram in the same state as it is drawn by user in JQuery
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3159
Joined: Oct 19th, 2005
Re: Save and load diagram in same state
Reply #1 - Sep 5th, 2019 at 11:20am
Print Post  
Hi,

Call its toJson and fromJson methods.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Save and load diagram in same state
Reply #2 - Sep 5th, 2019 at 11:29am
Print Post  
Please elaborate it more
  
Back to top
AIM  
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Save and load diagram in same state
Reply #3 - Sep 5th, 2019 at 1:46pm
Print Post  
You can check this demo: https://mindfusion.eu/demos/jsdiagram/Flowcharter.html

liza wrote on Sep 5th, 2019 at 11:29am:
Please elaborate it more

  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Save and load diagram in same state
Reply #4 - Sep 6th, 2019 at 3:50am
Print Post  
Okay I am looking into it. Also please can you tell me that the links style in the demo, I want to implement same. How I can set?
  
Back to top
AIM  
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Save and load diagram in same state
Reply #5 - Sep 6th, 2019 at 3:51am
Print Post  
also I want to implement same layout of diagram, Flowcharter layout. Please help me to achieve this.
  
Back to top
AIM  
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Save and load diagram in same state
Reply #6 - Sep 6th, 2019 at 6:12am
Print Post  
I want to do this from database.

Kannan Thirumal wrote on Sep 5th, 2019 at 1:46pm:
You can check this demo: https://mindfusion.eu/demos/jsdiagram/Flowcharter.html

liza wrote on Sep 5th, 2019 at 11:29am:
Please elaborate it more


  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3159
Joined: Oct 19th, 2005
Re: Save and load diagram in same state
Reply #7 - Sep 7th, 2019 at 6:41am
Print Post  
toJson returns a text string, you could store it inside a variable-length TEXT field of a database table. Alternatively, look into JSON databases -

https://www.quackit.com/json/tutorial/list_of_json_databases.cfm
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3159
Joined: Oct 19th, 2005
Re: Save and load diagram in same state
Reply #8 - Sep 8th, 2019 at 6:08am
Print Post  
Quote:
also I want to implement same layout of diagram, Flowcharter layout.


You can automatically arrange flow diagrams using LayeredLayout or FlowchartLayout classes -

Code
Select All
var layout = new MindFusion.Graphs.FlowchartLayout();
//var layout = new MindFusion.Graphs.LayeredLayout();
diagram.arrange(layout);
 



Regards,
Slavcho
  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Save and load diagram in same state
Reply #9 - Sep 9th, 2019 at 4:08am
Print Post  
Thanks, worked for me.
  
Back to top
AIM  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint