Skip to content
Snippets Groups Projects
Commit d5add0a1 authored by Martin Groppe's avatar Martin Groppe
Browse files

[Projekt: xRM-Marketing][TicketNr.: 2001566][[Kampagne ] Exportfunktion für Teilnehmer einer Stufe]

parent 8dcc7f40
No related branches found
No related tags found
No related merge requests found
...@@ -411,6 +411,10 @@ ...@@ -411,6 +411,10 @@
<isObjectAction v="false" /> <isObjectAction v="false" />
<iconId>VAADIN:AT</iconId> <iconId>VAADIN:AT</iconId>
</entityActionField> </entityActionField>
<entityActionField>
<name>Export_action</name>
<onActionProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/group/children/export_action/onActionProcess.js</onActionProcess>
</entityActionField>
</children> </children>
</entityActionGroup> </entityActionGroup>
<entityField> <entityField>
......
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
...@@ -1031,6 +1031,16 @@ Dependency.mapping = function () ...@@ -1031,6 +1031,16 @@ Dependency.mapping = function ()
"isObservable" : true "isObservable" : true
}, },
"getUIDsfn" : Dependency.defaultFunctionForRelation("TASKLINK", "OBJECT_ROWID", "CAMPAIGNSTEPID", "CampaignStep", "CAMPAIGNSTEP") "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" : "Lead_entity" :
......
...@@ -501,6 +501,7 @@ ExportTemplateUtils.exportableEntities = function () ...@@ -501,6 +501,7 @@ ExportTemplateUtils.exportableEntities = function ()
"Offer_entity", "Offer_entity",
"Organisation_entity", "Organisation_entity",
"Person_entity", "Person_entity",
"Salesproject_entity" "Salesproject_entity",
"CampaignStep_entity"
]; ];
} }
\ 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