Skip to content
Snippets Groups Projects
Commit 0cba1dbb authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

ScanServices - warnings

parent 658a9fcc
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 122 deletions
import("system.result");
result.string("NAME");
\ No newline at end of file
import("system.result");
result.string("ISO2");
\ No newline at end of file
import("system.result");
result.string("NAME");
\ No newline at end of file
import("system.result");
result.string("ISO2");
\ No newline at end of file
import("system.result");
result.string("NAME");
\ No newline at end of file
......@@ -163,8 +163,6 @@
<name>db</name>
<alias>Data_alias</alias>
<conditionProcess>%aditoprj%/entity/DSGVOInfo_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<onDBInsert>%aditoprj%/entity/DSGVOInfo_entity/recordcontainers/db/onDBInsert.js</onDBInsert>
<onDBUpdate>%aditoprj%/entity/DSGVOInfo_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
<linkInformation>
<linkInformation>
<name>23dd4eb2-0ac4-406e-92e3-031f1342bd05</name>
......
import("system.vars");
import("system.translate");
import("system.result");
result.string(translate.text(vars.get("$field.TITLE")));
\ No newline at end of file
import("system.vars");
import("system.translate");
import("system.result");
result.string(translate.text(vars.get("$field.NAME")));
import("system.vars");
import("system.result");
import("system.db");
// Check if assignment parameters are present
if(vars.exists("$param.AssignmentTable_param") &&
vars.exists("$param.AssignmentName_param") &&
vars.exists("$param.AssignmentRowId_param")) {
var assignmentTable = vars.get("$param.AssignmentTable_param");
var assignmentName = vars.get("$param.AssignmentName_param");
var assignmentRowId = vars.get("$param.AssignmentRowId_param");
var alias = db.getCurrentAlias();
var documents = [];
// Check if multiple Documents are selected
if(vars.exists("$local.idvalues") && vars.get("$local.idvalues") != '')
metadata = db.getBinaryMetadataForIds(vars.get("$local.idvalues"), true, alias)
else
metadata = db.getBinaryMetadata(assignmentTable, assignmentName, assignmentRowId, false, alias);
// Iterate through found binary data and populate result array
for( var i = 0; i < metadata.length; i++) {
documents.push( [metadata[i].id, metadata[i].filename, metadata[i].size,
metadata[i].edit, metadata[i].preview, metadata[i].mimetype,
metadata[i].description, metadata[i].keyword]);
}
result.object(documents);
}
import("Document_lib");
DocumentUtil.downloadSelectedDocuments();
import("Document_lib");
DocumentUtil.deleteCurrentDocument();
import("system.db");
import("system.vars");
import("Document_lib");
var assignmentTable = vars.get("$param.AssignmentTable_param");
var assignmentName = vars.get("$param.AssignmentName_param");
var assignmentRowId = vars.get("$param.AssignmentRowId_param");
var bindata = DocumentUtil.getBindataFromUpload(vars.get("$field.BINDATA_UPLOAD"));
var filename = vars.get("$field.NAME");
var description = vars.get("$field.DESCRIPTION");
var alias = db.getCurrentAlias();
var keyword = vars.get("$field.KEYWORD");
if(bindata != '' && filename != ''){
db.insertBinary(assignmentTable, assignmentName, assignmentRowId, "",
bindata, filename, description, keyword, alias);
}
import("system.vars");
import("system.db");
import("Document_lib");
var id = vars.get("$field.ID");
var parentId = "";
var fileName = vars.get("$field.NAME");
var description = vars.get("$field.DESCRIPTION");
var keyword = vars.get("$field.KEYWORD");
var alias = db.getCurrentAlias();
var bindata = DocumentUtil.getBindataFromUpload(vars.get("$field.BINDATA_UPLOAD"));
if (bindata == ''){
bindata = vars.get("$field.BINDATA_UPLOAD")
}
// Check if bindata is present and execute the corresponding update method
if(bindata != '')
db.updateBinary(id, parentId, bindata, fileName, description, keyword, alias);
else
db.updateBinaryMetadata(id, parentId, fileName, description, keyword, alias);
\ No newline at end of file
import("system.db");
import("system.result");
import("Sql_lib");
var cond = newWhereIfSet("FORECAST.OBJECT_ROWID", "$param.ForecastId_param");
//TODO: use a preparedCondition (.build instead of .toString) when available #1030812 #1034026
result.string(cond.toString());
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT)
result.string(vars.getString("$sys.date"));
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string(vars.getString("$sys.date"));
\ No newline at end of file
import("system.result")
result.string("DATE_START");
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT)
result.string(vars.getString("$sys.user"));
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment