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

[Projekt: Entwicklung - Neon][TicketNr.: 1059714][neon.open*** können und...

[Projekt: Entwicklung - Neon][TicketNr.: 1059714][neon.open*** können und dürfen nicht in store-Prozessen(insert, update, delete) des RecordContainers verwendet werden]
Email - write mail
parent 9d26fd3f
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
<name>Email_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Email_entity/documentation.adoc</documentation>
<recordContainer>jdito</recordContainer>
<recordContainer>datalessRecordContainer</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
......@@ -18,12 +18,14 @@
</entityProvider>
<entityField>
<name>UID</name>
<state>EDITABLE</state>
</entityField>
<entityField>
<name>DOCUMENT_TEMPLATE</name>
<title>Document Template</title>
<consumer>DocumentTemplates</consumer>
<linkedContext>DocumentTemplate</linkedContext>
<state>EDITABLE</state>
</entityField>
<entityConsumer>
<name>DocumentTemplates</name>
......@@ -53,6 +55,7 @@
<title>Recipient</title>
<consumer>EmailAddresses</consumer>
<textInputAllowed v="true" />
<state>EDITABLE</state>
<valueProcess>%aditoprj%/entity/Email_entity/entityfields/recipient/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Email_entity/entityfields/recipient/displayValueProcess.js</displayValueProcess>
</entityField>
......@@ -79,6 +82,7 @@
<name>bindata</name>
<title>Custom template</title>
<contentType>FILE</contentType>
<state>EDITABLE</state>
</entityField>
<entityActionField>
<name>downloadTemplate</name>
......@@ -93,6 +97,7 @@
</entityParameter>
<entityField>
<name>comingfrom</name>
<state>EDITABLE</state>
<valueProcess>%aditoprj%/entity/Email_entity/entityfields/comingfrom/valueProcess.js</valueProcess>
</entityField>
<entityParameter>
......@@ -106,23 +111,24 @@
<entityField>
<name>subject</name>
<title>Subject</title>
<state>EDITABLE</state>
</entityField>
<entityParameter>
<name>EmailFilename</name>
<expose v="true" />
</entityParameter>
<entityActionField>
<name>sendMail</name>
<title>send mail</title>
<onActionProcess>%aditoprj%/entity/Email_entity/entityfields/sendmail/onActionProcess.js</onActionProcess>
<iconId>VAADIN:AT</iconId>
<stateProcess>%aditoprj%/entity/Email_entity/entityfields/sendmail/stateProcess.js</stateProcess>
</entityActionField>
</entityFields>
<recordContainers>
<jDitoRecordContainer>
<name>jdito</name>
<jDitoRecordAlias>Data_alias</jDitoRecordAlias>
<contentProcess>%aditoprj%/entity/Email_entity/recordcontainers/jdito/contentProcess.js</contentProcess>
<onInsert>%aditoprj%/entity/Email_entity/recordcontainers/jdito/onInsert.js</onInsert>
<recordFieldMappings>
<jDitoRecordFieldMapping>
<name>UID.value</name>
</jDitoRecordFieldMapping>
</recordFieldMappings>
</jDitoRecordContainer>
<datalessRecordContainer>
<name>datalessRecordContainer</name>
<alias>Data_alias</alias>
</datalessRecordContainer>
</recordContainers>
</entity>
......@@ -8,7 +8,6 @@ import("Contact_lib");
import("Document_lib");
import("system.question");
var attachments = JSON.parse(vars.get("$param.Attachments_param"));
var senderContactId = vars.get("$param.ContactId_param");
var bindata = new FileUpload(vars.get("$field.bindata"));
......
import("system.neon");
import("system.result");
import("system.vars");
if (vars.get("$sys.validationerrors"))
result.string(neon.COMPONENTSTATE_DISABLED);
else
result.string(neon.COMPONENTSTATE_EDITABLE);
import("system.result");
import("system.vars");
//TODO: This dummy implementation shouldn't be nescessary here. Remove this process eventually. #1051003
var rows = [];
if (vars.get("$local.idvalues"))
rows = vars.get("$local.idvalues").map(function (id) {return [id];});
result.object(rows);
\ No newline at end of file
......@@ -6830,6 +6830,9 @@
<entry>
<key>No new recipients found that can be added to the serial letter.</key>
</entry>
<entry>
<key>send mail</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
<sqlModels>
......
......@@ -8175,6 +8175,7 @@ Bitte Datumseingabe prüfen</value>
</entry>
<entry>
<key>Send email</key>
<value>E-Mail losschicken</value>
</entry>
<entry>
<key>Activites</key>
......@@ -8752,6 +8753,10 @@ Bitte Datumseingabe prüfen</value>
<key>No new recipients found that can be added to the serial letter.</key>
<value>Keine neuen Empfänger, die zum Serienbrief werden können, gefunden.</value>
</entry>
<entry>
<key>send mail</key>
<value>E-Mail losschicken</value>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
......@@ -6896,6 +6896,9 @@
<entry>
<key>No new recipients found that can be added to the serial letter.</key>
</entry>
<entry>
<key>send mail</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
......@@ -3,7 +3,7 @@
<name>EmailEdit_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<size>SMALL</size>
<isOverlay v="true" />
<isOverlay v="false" />
<overlayOrientation>PORTRAIT</overlayOrientation>
<layout>
<noneLayout>
......@@ -14,6 +14,7 @@
<genericViewTemplate>
<name>Generic</name>
<editMode v="true" />
<hideEmptyFields v="false" />
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
......@@ -40,6 +41,7 @@
<genericViewTemplate>
<name>Generic2</name>
<editMode v="true" />
<hideEmptyFields v="false" />
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
......@@ -48,5 +50,12 @@
</entityFieldLink>
</fields>
</genericViewTemplate>
<actionsViewTemplate>
<name>ContinueActions</name>
<actions>
<element>sendMail</element>
</actions>
<entityField>#ENTITY</entityField>
</actionsViewTemplate>
</children>
</neonView>
......@@ -90,7 +90,7 @@ EmailWritingUtils.openNewMail = function (pToContactId, pToEmailAddress, pComing
if (pToEmailAddress)
params.Recipient_param = pToEmailAddress;
neon.openContext("Email", "EmailEdit_view", null, neon.OPERATINGSTATE_NEW, params);
neon.openContext("Email", "EmailEdit_view", null, neon.OPERATINGSTATE_VIEW, params);
}
EmailWritingUtils.getMailbridgeAddress = function ()
......
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