Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
2bf8085c
Commit
2bf8085c
authored
Sep 14, 2022
by
Daniel Bawag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WG-36 - Modified the file name format of output xml
parent
f607303d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
XML_Saver.js
Web-GDE/src/XMLWriter/XML_Saver.js
+1
-5
No files found.
Web-GDE/src/XMLWriter/XML_Saver.js
View file @
2bf8085c
...
...
@@ -23,7 +23,7 @@ function WriteForm(e,metrics)
XML
.
Close
();
var
final_xml
=
XML
.
ToString
().
replace
(
/</g
,
"
\
n<"
).
replace
(
/</g
,
"
\
<"
).
replace
(
/"/g
,
'"'
).
replace
(
/>/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);
let
formData
=
new
FormData
();
formData
.
append
(
"file"
,
myFile
);
...
...
@@ -31,10 +31,6 @@ function WriteForm(e,metrics)
method
:
"POST"
,
body
:
formData
});
}
catch
(
Err
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment