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

Siblings wurden eingefügt, dass sich entsprechende Teile im...

Siblings wurden eingefügt, dass sich entsprechende Teile im Kampagnenmanagement korrekt aktualisieren.
Die fehlende var wurde wieder eingefügt
parent 77aff4c9
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import("system.db");
import("system.util");
import("Campaign_lib");
var campaignId = vars.getString("$field.CAMPAIGN_ID");
var newCampaignStepId = vars.getString("$field.CAMPAIGNSTEP_ID");
var participants = JSON.parse(vars.getString("$param.campaignParticipants_param"));
......
......@@ -2,6 +2,11 @@
<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">
<name>CampaignParticipantChart_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<siblings>
<element>CampaignParticipant_entity</element>
<element>CampaignStep_entity</element>
<element>CampaignAddParticipants_entity</element>
</siblings>
<recordContainer>jdito</recordContainer>
<entityFields>
<entityProvider>
......
......@@ -5,6 +5,7 @@
<title>Participant</title>
<siblings>
<element>CampaignAddParticipants_entity</element>
<element>CampaignParticipantChart_entity</element>
</siblings>
<afterOperatingState>%aditoprj%/entity/CampaignParticipant_entity/afterOperatingState.js</afterOperatingState>
<titlePlural>Participants</titlePlural>
......
......@@ -6,6 +6,7 @@
<title>Campaign Step</title>
<siblings>
<element>CampaignPlanning_entity</element>
<element>CampaignParticipantChart_entity</element>
</siblings>
<contentTitleProcess>%aditoprj%/entity/CampaignStep_entity/contentTitleProcess.js</contentTitleProcess>
<onValidation>%aditoprj%/entity/CampaignStep_entity/onValidation.js</onValidation>
......
......@@ -56,10 +56,5 @@
<entityField>Attributes</entityField>
<view>AttributeRelationTree_view</view>
</neonViewReference>
<neonViewReference>
<name>db6fe68c-e5e8-4916-8a78-2d01665877a7</name>
<entityField>CampaignSteps</entityField>
<view>CampaignStepsGantt_view</view>
</neonViewReference>
</children>
</neonView>
......@@ -30,20 +30,11 @@ CampaignUtils.addParticipant = function(pContactId)
*
* @param {String} pRowIds req ContactIds
*/
CampaignUtils.addParticipantsByRowIds = function(pRowIds, pConditionSourceTableName)
CampaignUtils.addParticipants = function(pRowIds)
{
_CampaignUtils._openAddParticipantContext("CampaignAddParticipants", pRowIds, "campaignParticipantsRowIds_param", "CampaignAddParticipantsEdit_view", pConditionSourceTableName);
_CampaignUtils._openAddParticipantContext("CampaignAddParticipants", pRowIds, "campaignParticipants_param", "CampaignAddParticipantsEdit_view");
}
/**
* Add many Contacts (Person or Organistaion) to a Campaign
*
* @param {String} pRowIds req ContactIds
*/
CampaignUtils.addParticipantsByCondition = function(pCondition, pConditionSourceTableName)
{
_CampaignUtils._openAddParticipantContext("CampaignAddParticipants", pCondition, "campaignParticipantsCondition_param", "CampaignAddParticipantsEdit_view", pConditionSourceTableName);
}
/**
* todo
......@@ -320,7 +311,7 @@ function _CampaignUtils() {}
* @param {String} pView req targeting view
*
*/
_CampaignUtils._openAddParticipantContext = function(pContext, pRowIds, pEntityParam, pView, pConditionSourceTableName)
_CampaignUtils._openAddParticipantContext = function(pContext, pRowIds, pEntityParam, pView)
{
var params = {};
......@@ -329,11 +320,11 @@ _CampaignUtils._openAddParticipantContext = function(pContext, pRowIds, pEntityP
params[pEntityParam] = pRowIds;
}
params["isUpdate_param"] = false;
params["conditionSourceTableName_param"] = pConditionSourceTableName;
neon.openContext(pContext, null, null, neon.OPERATINGSTATE_NEW, params);
}
/**
* todo
*/
......
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