DHTMLX Tree is not loading the updated xml file

Hai,



I am using DHTMLX Tree in my application.My development environment is myeclipse ide.The problem i am facing is that even after the xml file is changed the tree is not reflecting the change.I have used the “tree.refreshItem(0);” and “tree.setXMLAutoLoading” but to no effect.Only time the tree is reflecting the change is when I restart the server.



Expecting a solution soon as this has somewhat stopped our development in its track.




Hello,


please, check that script (or xml) that is defined in the setXMLAutoLoading method returns the desired xml structure.


We have attached the dhtmlxcommon_debug.js it allows to get details about loaded xml.


dhtmlxcommon_debug.zip (6.2 KB)


Hello,



Thanks for the quick reply .We managed to resove the issue by directly using the xml string from the database to the “loadXMLString()” method.As for our “loadXML()”  issue the xml file is being correctly loaded as we are checking the file after the updation operation.Only thing is “loadXML()” is not taking the updated xml file.It sort of seems like it doesn’t know that the file has been updated.But once we refresh the file from My Eclipse IDE or if we restarts the server it takes the updated file.



Any way we are planning to move ahead with “loadXMLString()” method but curious to know why the “loadXML()” issue is happening



 



 



 



 


Possible the reason for the issue is cache. You can try to solve the issue as follows:


tree.loadXML(url+"?randseed="+(new Date()).valueOf());