Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
663110c8
Commit
663110c8
authored
6 years ago
by
Johannes Hörmann
Browse files
Options
Downloads
Plain Diff
Merge origin/master
parents
3c278e97
9871c181
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
process/Document_lib/process.js
+8
-6
8 additions, 6 deletions
process/Document_lib/process.js
process/Sql_lib/process.js
+168
-550
168 additions, 550 deletions
process/Sql_lib/process.js
process/Util_lib/process.js
+0
-32
0 additions, 32 deletions
process/Util_lib/process.js
with
176 additions
and
588 deletions
process/Document_lib/process.js
+
8
−
6
View file @
663110c8
...
...
@@ -22,17 +22,19 @@ function DocumentUtil(){
DocumentUtil
.
downloadSelectedDocuments
=
function
()
{
var
alias
=
db
.
getCurrentAlias
();
// Download selected files (=not op
p
ened)
// Download selected files (=not opened)
if
(
vars
.
exists
(
"
$local.uids
"
)
&&
vars
.
get
(
"
$local.rows
"
)
!=
''
)
{
var
rows
=
JSON
.
parse
(
vars
.
get
(
"
$local.rows
"
));
var
uids
=
JSON
.
parse
(
vars
.
get
(
"
$local.uids
"
));
var
binaryContents
=
db
.
getBinaryContents
(
uids
,
alias
);
for
(
var
i
=
0
;
i
<
binaryContents
.
length
;
i
++
)
{
var
base64data
=
binaryContents
[
i
];
var
filename
=
rows
[
i
][
"
NAME
"
];
if
(
base64data
!=
null
&&
base64data
!=
''
)
neon
.
download
(
base64data
,
filename
);
// check if multiplie Files are selected.
// files get packed into a zip archive before downloading
if
(
binaryContents
.
length
>
1
)
{
var
fileNames
=
rows
.
map
(
function
(
value
)
{
return
value
[
"
NAME
"
];
});
neon
.
downloadToZip
(
"
Dateien.zip
"
,
binaryContents
,
fileNames
);
}
else
{
neon
.
download
(
binaryContents
[
0
],
rows
[
0
][
"
NAME
"
]);
}
}
// Download open file
...
...
This diff is collapsed.
Click to expand it.
process/Sql_lib/process.js
+
168
−
550
View file @
663110c8
This diff is collapsed.
Click to expand it.
process/Util_lib/process.js
+
0
−
32
View file @
663110c8
...
...
@@ -452,35 +452,3 @@ function JDitoUtils()
return
dbAliases
;
}
}
/**
* Class containing String utility functions
* @class
* @deprecated
* @todo: remove this funciton
*/
function
StringUtils
(){}
{
/**
* uses the right translate method, depending on the parameters
*
* @param {String} pText string to be translated
* @param {String} pLocale locale for translating
*
* @return {String}
*
*
*/
this
.
translateStr
=
function
(
pText
,
pLocale
)
{
if
(
pLocale
==
undefined
)
return
translate
.
text
(
pText
);
else
return
translate
.
text
(
pText
,
pLocale
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment