Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Adding tag to DiagramLink has a problem (Read 2814 times)
henry k
Junior Member
**
Offline


I Love MindFusion!

Posts: 51
Location: Finland
Joined: Apr 4th, 2012
Adding tag to DiagramLink has a problem
Apr 26th, 2012 at 6:40am
Print Post  
As in subject is shortly described, by adding a tag to diagram link there is going to be problem.
I haven't tested it separately but in my case it clears all nodes from the diagram. (ClientSideMode=JavaApplet)

I saved the diagram to a xml and I saw that the "tag" tag was something like this:  <Tag Type="1" />

Br. Henry
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Adding tag to DiagramLink has a problem
Reply #1 - Apr 26th, 2012 at 9:07am
Print Post  
Hi,

Is the link visible after loading the diagram? Are you handling the SerializeTag and DeserializeTag events? Is there any exception raised before the nodes disappear?
Does the Java console show any relevant info about the problem?
  
Back to top
 
IP Logged
 
henry k
Junior Member
**
Offline


I Love MindFusion!

Posts: 51
Location: Finland
Joined: Apr 4th, 2012
Re: Adding tag to DiagramLink has a problem
Reply #2 - Apr 26th, 2012 at 9:37am
Print Post  
Lyubo wrote on Apr 26th, 2012 at 9:07am:
Hi,

Is the link visible after loading the diagram? Are you handling the SerializeTag and DeserializeTag events? Is there any exception raised before the nodes disappear?
Does the Java console show any relevant info about the problem?


Link visible after loading the diagram: nothing is visible (as I miserably described)

Is there any exceptions raised before the nodes disappear: no, not from server side, at least not in any that try-catch can see..

Are you handling the SerializeTag and DeserializeTag events: no...

Br. Henry
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Adding tag to DiagramLink has a problem
Reply #3 - Apr 26th, 2012 at 10:42am
Print Post  
Can you send us a small application that reproduces this problem? You can attach it here or send it to support@mindfusion.eu.
  
Back to top
 
IP Logged
 
henry k
Junior Member
**
Offline


I Love MindFusion!

Posts: 51
Location: Finland
Joined: Apr 4th, 2012
Re: Adding tag to DiagramLink has a problem
Reply #4 - Apr 27th, 2012 at 12:38pm
Print Post  
I finally found the case.

The tag that is generated is null/emptyString.
( <Tag Type="1" /> ) << is generated

If this xml is loaded, the diagram will be empty (nothing is shown on the diagram).
But when a postback or callback is made (when data is already loaded to session for example)... the data exists there (i.e. the nodes & links).

In the attachment there is a XML file (in text extension, because of forum limitations)

Br. Henry
  

demoDiagram.txt (Attachment deleted)
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Adding tag to DiagramLink has a problem
Reply #5 - Apr 27th, 2012 at 2:00pm
Print Post  
Hi,

This version should fix this issue: https://mindfusion.eu/_temp/netdiag_applet.zip.
Alternatively, you can reset the Tag value to null instead of assigning an empty string to it.

Let me know if this helps.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint