Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Upload XML file failed! (Read 2611 times)
ncepu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 25
Joined: Mar 5th, 2012
Upload XML file failed!
Apr 21st, 2012 at 7:02am
Print Post  
ClientSide Mode:JavaApplet
question .When I first load my diagram from a xml file,the diagram display the rectangle instead my shapenode.After several times,it can display the correct shapenode.
How Can I solve,I hope your help.
Thank you!
« Last Edit: Apr 22nd, 2012 at 2:54am by ncepu »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upload XML file failed!
Reply #1 - Apr 23rd, 2012 at 5:51am
Print Post  
How are you loading your custom shape definition on the client side?
  
Back to top
 
IP Logged
 
ncepu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 25
Joined: Mar 5th, 2012
Re: Upload XML file failed!
Reply #2 - Apr 25th, 2012 at 11:33am
Print Post  
I load my file on the server side in PageLoad function.And before I load the xml file ,I set the diagramView‘s shapeLiabrary atrribute to my shapeLibrary file.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upload XML file failed!
Reply #3 - Apr 25th, 2012 at 12:47pm
Print Post  
Please attach a test project that shows the problem.
  
Back to top
 
IP Logged
 
ncepu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 25
Joined: Mar 5th, 2012
Re: Load XML file failed!
Reply #4 - Apr 27th, 2012 at 4:23am
Print Post  
This is the Test project!It load the file failed.I can't upload all my project to the server,because it's so big,so,I upload the important files.
I need your help!
  

Test.rar (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upload XML file failed!
Reply #5 - Apr 27th, 2012 at 5:05am
Print Post  
You could set ShapeLibraryLocation in the aspx markup, move the assignment to Page_Init, or call ShapeLibrary.LoadFrom(MapPath("PowerSystem.shl")) before diagram.LoadFromXml(). The problem is that on the server side custom shapes specified via ShapeLibraryLocation are loaded from the control's OnInit handler; the assignment in Page_Load comes too late and will only help loading the shapes in the applet.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint