Expand my Community achievements bar.

exportData exports to the wrong folder

Avatar

Former Community Member
I have xml of my data being exported and imported to a mapped drive. When I do an import it pulls the xml from the mapped drive as expected. When I export the xml, it exports it to the desktop. I have both in the click events of buttons. I have the events as Javascript and running from the client.



The code I have is:



exportData("xmlData.xml",0);

importData("xmlData.xml");



It should be importing and exporting from the same place, but it's not. It works properly however when I put the drive letter in. (I didn't know you had to escape the '\'.)



Such as:



exportData("X:\\xmlData.xml",0);

importData("X:\\xmlData.xml");



Any ideas?
1 Reply

Avatar

Former Community Member
If no location is specified then I assume it will go from the users default profile (the defaultt file location for Windows).