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

isUpdate-Feld welches zurück gibt ob Die Serienaktion im Update oder Neuanlage Modus ist

parent f16a6d9b
No related branches found
No related tags found
No related merge requests found
...@@ -119,6 +119,10 @@ ...@@ -119,6 +119,10 @@
<title>Max participants</title> <title>Max participants</title>
<displayValueProcess>%aditoprj%/entity/CampaignAddParticipants_entity/entityfields/campaignstepmaxparticipantcount/displayValueProcess.js</displayValueProcess> <displayValueProcess>%aditoprj%/entity/CampaignAddParticipants_entity/entityfields/campaignstepmaxparticipantcount/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
<entityField>
<name>isUpdate</name>
<valueProcess>%aditoprj%/entity/CampaignAddParticipants_entity/entityfields/isupdate/valueProcess.js</valueProcess>
</entityField>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<jDitoRecordContainer> <jDitoRecordContainer>
......
import("system.result");
import("system.vars");
var isUpdate = "false";
if(vars.exists("$param.isUpdate_param") && vars.get("$param.isUpdate_param") != null)
isUpdate = vars.get("$param.isUpdate_param");
result.string(isUpdate);
\ No newline at end of file
...@@ -11,10 +11,8 @@ var campaignId = vars.getString("$field.CAMPAIGN_ID"); ...@@ -11,10 +11,8 @@ var campaignId = vars.getString("$field.CAMPAIGN_ID");
var newCampaignStepId = vars.getString("$field.CAMPAIGNSTEP_ID"); var newCampaignStepId = vars.getString("$field.CAMPAIGNSTEP_ID");
var participants = JSON.parse(vars.getString("$param.campaignParticipants_param")); var participants = JSON.parse(vars.getString("$param.campaignParticipants_param"));
var isUpdate = "false"; var isUpdate = vars.get("$field.isUpdate");
if(vars.exists("$param.isUpdate_param") && vars.get("$param.isUpdate_param") != null) logging.log("onInsert isUpdate -> " + isUpdate);
isUpdate = vars.get("$param.isUpdate_param");
var colNamesCampaignParticipantLog = CampaignUtils.getParticipantLogInsertColumnNames(); var colNamesCampaignParticipantLog = CampaignUtils.getParticipantLogInsertColumnNames();
var cols = []; var cols = [];
......
...@@ -4,5 +4,4 @@ import("Campaign_lib"); ...@@ -4,5 +4,4 @@ import("Campaign_lib");
import("system.vars"); import("system.vars");
var stepId = CampaignUtils.getDefaultCampaignStep(vars.get("$field.CAMPAIGN_ID")); var stepId = CampaignUtils.getDefaultCampaignStep(vars.get("$field.CAMPAIGN_ID"));
logging.log("stepId -> " + stepId);
neon.setFieldValue("$field.CAMPAIGNSTEP_ID", stepId); neon.setFieldValue("$field.CAMPAIGNSTEP_ID", stepId);
\ 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