Skip to content
Snippets Groups Projects
Commit a08156fa 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]
BulkMailTesting - remmoved jDitoRec that was overlooked 
parent c2ddbb04
No related branches found
No related tags found
No related merge requests found
......@@ -58,17 +58,6 @@
</entityActionField>
</entityFields>
<recordContainers>
<jDitoRecordContainer>
<name>jdito</name>
<jDitoRecordAlias>Data_alias</jDitoRecordAlias>
<contentProcess>%aditoprj%/entity/BulkMailTesting_entity/recordcontainers/jdito/contentProcess.js</contentProcess>
<onInsert>%aditoprj%/entity/BulkMailTesting_entity/recordcontainers/jdito/onInsert.js</onInsert>
<recordFieldMappings>
<jDitoRecordFieldMapping>
<name>UID.value</name>
</jDitoRecordFieldMapping>
</recordFieldMappings>
</jDitoRecordContainer>
<datalessRecordContainer>
<name>datalessRecordContainer</name>
<alias>Data_alias</alias>
......
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
import("Sql_lib");
import("system.db");
import("Bulkmail_lib");
import("system.vars");
var testingContact = vars.get("$field.TESTING_CONTACT_ID");
var testingEmail = vars.get("$field.TESTING_EMAIL_ADDRESS");
var bulkMailId = vars.get("$param.BulkMailId_param");
BulkMailUtils.sendBulkMailOnServer(bulkMailId, [[testingContact, testingEmail]]);
if (vars.get("$field.SAVESETTINGS") == "1")
{
newWhere("BULKMAIL.BULKMAILID", bulkMailId)
.updateFields({
"TESTING_CONTACT_ID" : testingContact,
"TESTING_EMAIL_ADDRESS" : testingEmail
});
}
\ 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