Skip to content
Snippets Groups Projects
Commit d23e4512 authored by Dominik Lechner's avatar Dominik Lechner
Browse files

Update Documenttemplate

parent 1213fb78
No related branches found
No related tags found
No related merge requests found
import("system.logging");
import("system.vars");
import("system.neon");
import("Entity_lib");
import("Document_lib");
var uploadValue = ProcessHandlingUtils.getOnValidationValue(vars.get("$field.BINDATA"));
neon.setFieldValue("$field.NAME", DocumentUtil.getFilenameFromUpload(uploadValue));
if(!(vars.get("$field.NAME") != null && vars.get("$field.NAME") != ""))
{
neon.setFieldValue("$field.NAME", DocumentUtil.getFilenameFromUpload(uploadValue));
}
\ No newline at end of file
......@@ -6,5 +6,6 @@ var bindata = DocumentUtil.getBindataFromUpload(vars.get("$field.BINDATA"));
if(bindata != "")
{
db.updateBinary(vars.get("$field.DOCUMENTTEMPLATEID"), "", bindata, DocumentUtil.getFilenameFromUpload(vars.get("$field.BINDATA")), "", "", "_____SYSTEMALIAS");
var bId = db.cell("select ID from ASYS_BINARIES where ROW_ID = '" + vars.get("$field.DOCUMENTTEMPLATEID") + "'", "_____SYSTEMALIAS");
db.updateBinary(bId, "", bindata, DocumentUtil.getFilenameFromUpload(vars.get("$field.BINDATA")), "", "", "_____SYSTEMALIAS");
}
\ No newline at end of file
......@@ -25,7 +25,7 @@
<clientSearchOptimizedForSpeed v="true" />
<clientSearchExcludeForIgnorecase v="true" />
<compressMailrepository v="false" />
<blobHandlingMethod>PROCESS</blobHandlingMethod>
<blobHandlingMethod>DATABASE</blobHandlingMethod>
<databaseAuditGetOldValueLobs v="false" />
<indexsearchGlobalEnabled v="true" />
<indexsearchFullIndexerEnabled v="true" />
......
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