Skip to content
Snippets Groups Projects
Commit fa1c4731 authored by David Büchler's avatar David Büchler
Browse files

Serienaktion Infotexte mit korrekten Platzhaltern erweitert.

parent bb8eb582
No related branches found
No related tags found
No related merge requests found
......@@ -94,17 +94,12 @@ if(selectedCampaignId != '')
}
else if(hasStepEnoughSlots(countValidParticipantsToAdd))
{
messageString = translate.text("#countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s) will be added to the selected campaign step");
messageString = messageString.replace("#countValidParticipantsToAdd#", countValidParticipantsToAdd);
messageString = messageString.replace("#countParticipantsToAdd#", countParticipantsToAdd);
messageString = translate.withArguments("%0/%1 participant(s) will be added to the selected campaign step", [countValidParticipantsToAdd, countParticipantsToAdd]);
resultValue = "true";
}
else
{
messageString = translate.text("Not enough slots for #countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s)");
messageString = messageString.replace("#countValidParticipantsToAdd#", countValidParticipantsToAdd);
messageString = messageString.replace("#countParticipantsToAdd#", countParticipantsToAdd);
messageString = translate.withArguments("Not enough slots for %0/%1 participant(s)", [countValidParticipantsToAdd, countParticipantsToAdd]);
}
neon.setFieldValue("$field.campaignParticipantMessage", messageString);
result.string(resultValue);
......
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.8" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.8">
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.9" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.9">
<name>CampaignPlanning_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<icon>NEON:GROUP_APPOINTMENT</icon>
......@@ -140,16 +140,32 @@
<contentProcess>%aditoprj%/entity/CampaignPlanning_entity/recordcontainers/jditorecordcontainer/contentProcess.js</contentProcess>
<onUpdate>%aditoprj%/entity/CampaignPlanning_entity/recordcontainers/jditorecordcontainer/onUpdate.js</onUpdate>
<onDelete>%aditoprj%/entity/CampaignPlanning_entity/recordcontainers/jditorecordcontainer/onDelete.js</onDelete>
<recordFields>
<element>UID.value</element>
<element>NAME.value</element>
<element>PREDECESSOR_STEP_ID.value</element>
<element>STEP_DESCRIPTION.value</element>
<element>DATE_START.value</element>
<element>DATE_END.value</element>
<element>CAMPAIGN_ID.value</element>
<element>targetContext.value</element>
</recordFields>
<recordFieldMappings>
<jDitoRecordFieldMapping>
<name>UID.value</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>NAME.value</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>PREDECESSOR_STEP_ID.value</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>STEP_DESCRIPTION.value</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>DATE_START.value</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>DATE_END.value</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>CAMPAIGN_ID.value</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>targetContext.value</name>
</jDitoRecordFieldMapping>
</recordFieldMappings>
</jDitoRecordContainer>
</recordContainers>
</entity>
......@@ -4267,17 +4267,14 @@
<key>All selected participants already are in the campaign</key>
</entry>
<entry>
<key>Not enough slots for #countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s)</key>
<key>Not enough slots for %0/%1 participant(s)</key>
</entry>
<entry>
<key>#countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s) will be added to the selected campaign step</key>
<key>%0/%1 participant(s) will be added to the selected campaign step</key>
</entry>
<entry>
<key>No valid Selection</key>
</entry>
<entry>
<key>Open admin view</key>
</entry>
<entry>
<key>Sender address</key>
</entry>
......
......@@ -5640,12 +5640,12 @@
<value>Alle selektierten Teilnehmer sind bereits in der Kampagne</value>
</entry>
<entry>
<key>#countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s) will be added to the selected campaign step</key>
<value>#countValidParticipantsToAdd#/#countParticipantsToAdd# Teilnehmer werden zur selektierten Kampagnenstufe hinzugefügt</value>
<key>%0/%1 participant(s) will be added to the selected campaign step</key>
<value>%0/%1 Teilnehmer werden zur selektierten Kampagnenstufe hinzugefügt</value>
</entry>
<entry>
<key>Not enough slots for #countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s)</key>
<value>Nicht genügend Teilnehmerplätze verfügbar für #countValidParticipantsToAdd#/#countParticipantsToAdd# Teilnehmer</value>
<key>Not enough slots for %0/%1 participant(s)</key>
<value>Nicht genügend Teilnehmerplätze verfügbar für %0/%1 Teilnehmer</value>
</entry>
<entry>
<key>No valid Selection</key>
......
......@@ -4316,17 +4316,14 @@
<key>All selected participants already are in the campaign</key>
</entry>
<entry>
<key>#countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s) will be added to the selected campaign step</key>
<key>%0/%1 participant(s) will be added to the selected campaign step</key>
</entry>
<entry>
<key>Not enough slots for #countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s)</key>
<key>Not enough slots for %0/%1 participant(s)</key>
</entry>
<entry>
<key>No valid Selection</key>
</entry>
<entry>
<key>Open admin view</key>
</entry>
<entry>
<key>Sender address</key>
</entry>
......
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