afeiraul Report post Posted April 18, 2012 I am testing the dragnode, my xml file like this <set x='400' y='600' width='60' height='20' color='FE3233' name='aaa' alpha='100' toolText='aaa' id='1' link='j-myJS-1'/> but when i use getXMLData() to get the new xml info, i get <set id='1' x='400' y='600' name='aaa' height='20' width='60' shape='RECTANGLE' toolText='aaa' id='1' color='FE3233' /> where is the "link" attribute? how can i get it back? (I test getXMLData(), getXMLData(true), getXMLData(false), none of them is right) Share this post Link to post Share on other sites
afeiraul Report post Posted May 3, 2012 who can help me? Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted May 7, 2012 (edited) Hi, With regards to your query, to get the link attribute using getXMLData(); method, you need to pass the argument "false" to this function. Ref. Code: alert(ourChart.getXMLData(false)); Please find the attached screen shot for the same. Edited May 7, 2012 by Sashibhusan Share this post Link to post Share on other sites
afeiraul Report post Posted May 7, 2012 (edited) I'm very appreicate for the reply. there is another problem exist: i cant get the new coordinate of node when the user update the position. The testing step is: 1. I create a new chart from DB data, the position is random, and set the js function for every node; 2. The user change the position of the node, and click the save button, I will use chartObj.getXMLData() to get the new xml string and save it to file; 3. when the user access the chart again, I will get the data from file first and render the xml string to chart, then the user will see the chart he want. Now my js function must work when the user click the node; the problem is: 1. when i use chartObj.getXMLData() I cant get my js link function from chart; 2. when i use chartObj.getXMLData(false) i cant get new coordinate of the node; how can i get them all? This problem bock me now, I'm waiting for the reply. Thanks very much! Edited May 7, 2012 by afeiraul Share this post Link to post Share on other sites
Guest Sumedh Report post Posted May 11, 2012 I'm very appreicate for the reply. there is another problem exist: i cant get the new coordinate of node when the user update the position. The testing step is: 1. I create a new chart from DB data, the position is random, and set the js function for every node; 2. The user change the position of the node, and click the save button, I will use chartObj.getXMLData() to get the new xml string and save it to file; 3. when the user access the chart again, I will get the data from file first and render the xml string to chart, then the user will see the chart he want. Now my js function must work when the user click the node; the problem is: 1. when i use chartObj.getXMLData() I cant get my js link function from chart; 2. when i use chartObj.getXMLData(false) i cant get new coordinate of the node; how can i get them all? This problem bock me now, I'm waiting for the reply. Thanks very much! Hi, We are looking into the issue. We will update you on this shortly. Thanks for your time. Share this post Link to post Share on other sites
Guest Sumedh Report post Posted May 29, 2012 Hi, We are looking into the issue. We will update you on this shortly. Thanks for your time. Hi, Apologies for the delay. This has been identified as a bug. We will update you on this as it will be fixed. Share this post Link to post Share on other sites