Skip to content
Snippets Groups Projects
Commit e6d6086e authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: Entwicklung - xRM][TicketNr.: 1044224][Document-Context:...

[Projekt: Entwicklung - xRM][TicketNr.: 1044224][Document-Context: BINDATA_UPLOAD muss Pflichtfeld sein]
parent dda6900d
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
<documentation>%aditoprj%/entity/Document_entity/documentation.adoc</documentation>
<title>Document</title>
<grantCreateProcess>%aditoprj%/entity/Document_entity/grantCreateProcess.js</grantCreateProcess>
<onValidation>%aditoprj%/entity/Document_entity/onValidation.js</onValidation>
<iconId>VAADIN:FILE</iconId>
<titlePlural>Documents</titlePlural>
<recordContainer>jdito</recordContainer>
......@@ -57,7 +58,7 @@
<name>BINDATA_UPLOAD</name>
<title>File</title>
<contentType>FILE</contentType>
<mandatory v="false" />
<mandatory v="true" />
<mandatoryProcess>%aditoprj%/entity/Document_entity/entityfields/bindata_upload/mandatoryProcess.js</mandatoryProcess>
<onValueChange>%aditoprj%/entity/Document_entity/entityfields/bindata_upload/onValueChange.js</onValueChange>
<onValueChangeTypes>
......
......@@ -3,6 +3,6 @@ import("system.vars");
import("system.result");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string("true");
result.string(true);
else
result.string("false");
result.string(false);
\ No newline at end of file
import("system.neon");
import("system.result");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
{
var bindata = vars.get("$field.BINDATA_UPLOAD");
if(bindata == null || bindata == "")
{
result.string("Dont forget to upload a file");
}
}
\ 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