Commit 2bf8085c by Daniel Bawag

WG-36 - Modified the file name format of output xml

parent f607303d
...@@ -23,7 +23,7 @@ function WriteForm(e,metrics) ...@@ -23,7 +23,7 @@ function WriteForm(e,metrics)
XML.Close(); XML.Close();
var final_xml=XML.ToString().replace(/</g,"\n<").replace(/&lt;/g,"\<").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/\n<\//g,"</").replace(/<\/xml>/g,"\n</xml>"); var final_xml=XML.ToString().replace(/</g,"\n<").replace(/&lt;/g,"\<").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/\n<\//g,"</").replace(/<\/xml>/g,"\n</xml>");
var myFile = new File([final_xml], File_Name + ".xml", {type: "text/plain;charset=utf-8"}); var myFile = new File([final_xml], "UserID" + "_" + File_Name + ".xml", {type: "text/plain;charset=utf-8"});
// saveAs(myFile); // saveAs(myFile);
let formData = new FormData(); let formData = new FormData();
formData.append("file", myFile); formData.append("file", myFile);
...@@ -31,10 +31,6 @@ function WriteForm(e,metrics) ...@@ -31,10 +31,6 @@ function WriteForm(e,metrics)
method: "POST", method: "POST",
body: formData body: formData
}); });
} }
catch(Err) catch(Err)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment