diff --git a/entity/CampaignStep_entity/CampaignStep_entity.aod b/entity/CampaignStep_entity/CampaignStep_entity.aod index e7053a5c96711f36b039d5b36996431848d4f7bd..80771d4bea5e699811f7a2656a7971e5161b75df 100644 --- a/entity/CampaignStep_entity/CampaignStep_entity.aod +++ b/entity/CampaignStep_entity/CampaignStep_entity.aod @@ -413,6 +413,10 @@ <iconId>VAADIN:AT</iconId> <stateProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/group/children/newbulkmail/stateProcess.js</stateProcess> </entityActionField> + <entityActionField> + <name>Export_action</name> + <onActionProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/group/children/export_action/onActionProcess.js</onActionProcess> + </entityActionField> </children> </entityActionGroup> <entityField> diff --git a/entity/CampaignStep_entity/entityfields/group/children/export_action/onActionProcess.js b/entity/CampaignStep_entity/entityfields/group/children/export_action/onActionProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..6c68dcef71d0a7db12fd4d25819640764899dbad --- /dev/null +++ b/entity/CampaignStep_entity/entityfields/group/children/export_action/onActionProcess.js @@ -0,0 +1,11 @@ +import("ExportTemplate_lib"); +import("system.vars"); + +var selection = vars.get("$sys.selection"); + +if(selection.length == 0) //no selection -> use Filtercondition; +{ + selection = vars.get("$sys.filter"); +} + +ExportTemplateUtils.addParticipants(JSON.stringify(selection), vars.get("$sys.currentcontextname")); \ No newline at end of file diff --git a/process/Dependency_lib/process.js b/process/Dependency_lib/process.js index 20e0d32b4cefaddf9386a32dbadc0dac70c206e1..f78ada044d1ec64bb24a800f971dc9ba17535019 100644 --- a/process/Dependency_lib/process.js +++ b/process/Dependency_lib/process.js @@ -1031,6 +1031,16 @@ Dependency.mapping = function () "isObservable" : true }, "getUIDsfn" : Dependency.defaultFunctionForRelation("TASKLINK", "OBJECT_ROWID", "CAMPAIGNSTEPID", "CampaignStep", "CAMPAIGNSTEP") + }, + "CampaignParticipant_entity" : + { + "options" : + { + "isExportable" : true, + "isObservable" : false + }, + "getUIDsfn" : Dependency.defaultFunctionForRelation("CAMPAIGNPARTICIPANT", "CAMPAIGNSTEP_ID", "CAMPAIGNSTEPID", null, "CAMPAIGNSTEPID", "CAMPAIGNPARTICIPANTID"), + "fieldsToLoad" : ["CAMPAIGNSTEPID"] } }, "Lead_entity" : diff --git a/process/ExportTemplate_lib/process.js b/process/ExportTemplate_lib/process.js index 9160964a0ff254f2f8c585112010e9703eb95d64..20471012eebc84bcd63c8ce31f7dd9ab7f4d9e4f 100644 --- a/process/ExportTemplate_lib/process.js +++ b/process/ExportTemplate_lib/process.js @@ -503,6 +503,7 @@ ExportTemplateUtils.exportableEntities = function () "Offer_entity", "Organisation_entity", "Person_entity", - "Salesproject_entity" + "Salesproject_entity", + "CampaignStep_entity" ]; } \ No newline at end of file