Skip to content
Snippets Groups Projects
Commit dcfc01e1 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

Merge branch '2021.2_scanservices' into '2021.2'

scanservices

See merge request xrm/basic!1392
parents 28fd5577 b3cafbfb
No related branches found
No related tags found
No related merge requests found
Showing
with 44 additions and 33 deletions
import("system.neonFilter");
import("system.translate");
import("system.neon");
import("Context_lib");
......@@ -23,4 +24,5 @@ var params = {
"ContextTitlePlural_param": translate.text("Activities")
}
neon.openContext("AddAttributesToSelection", "AddAttributesToSelectionEdit_view", null, neon.OPERATINGSTATE_NEW, params, null);
\ No newline at end of file
var recipe = neonFilter.createEntityRecordsRecipeBuilder().parameters(params).toString();
neon.openContextWithRecipe("AddAttributesToSelection", "AddAttributesToSelectionEdit_view", neon.OPERATINGSTATE_NEW, recipe, null);
import("system.neonFilter");
import("system.vars");
import("system.neon");
neon.openContext("MSTeamsActivityImport", "MSTeamsActivityImportEdit_view", null, neon.OPERATINGSTATE_VIEW, {
var recipe = neonFilter.createEntityRecordsRecipeBuilder().parameters({
"ObjectRowId_param" : vars.get("$param.RowId_param"),
"ObjectType_param": vars.get("$param.ObjectId_param")
});
\ No newline at end of file
}).toString();
neon.openContextWithRecipe("MSTeamsActivityImport", "MSTeamsActivityImportEdit_view", neon.OPERATINGSTATE_VIEW, recipe);
import("system.neonFilter");
import("KeywordRegistry_basic");
import("Sql_lib");
import("Employee_lib");
......@@ -8,5 +9,6 @@ var taskIds = newSelect("TASKID")
.where("TASK.STATUS", $KeywordRegistry.taskStatus$new())
.and("TASK.EDITOR_CONTACT_ID", EmployeeUtils.getCurrentContactId())
.arrayColumn();
neon.openContext("Task", "TaskFilter_view", taskIds, neon.OPERATINGSTATE_SEARCH, null);
\ No newline at end of file
var recipe = neonFilter.createEntityRecordsRecipeBuilder().uidsIncludelist(taskIds).toString();
neon.openContextWithRecipe("Task", "TaskFilter_view", neon.OPERATINGSTATE_SEARCH, recipe);
import("system.neonFilter");
import("system.neon");
import("system.db");
import("ActivityTask_lib");
......@@ -12,4 +13,5 @@ var overdueTask = newSelect("TASKID")
.and("TASK.STATUS", TaskUtils.getEndedStatuses(), SqlBuilder.NOT_IN())
.array(db.COLUMN)
neon.openContext("Task", "TaskFilter_view", overdueTask, neon.OPERATINGSTATE_SEARCH, null);
\ No newline at end of file
var recipe = neonFilter.createEntityRecordsRecipeBuilder().uidsIncludelist(overdueTask).toString();
neon.openContextWithRecipe("Task", "TaskFilter_view", neon.OPERATINGSTATE_SEARCH, recipe);
import("system.neonFilter");
import("Context_lib");
import("system.vars");
import("system.neon");
......@@ -38,4 +39,6 @@ var params = {
MapViewCenterLat_param: vars.get("$param.LocationLat_param"),
MapViewCenterLon_param: vars.get("$param.LocationLon_param")
};
neon.openContext("Organisation", "OrganisationFilter_view", contactIds, neon.OPERATINGSTATE_SEARCH, params, null);
\ No newline at end of file
var recipe = neonFilter.createEntityRecordsRecipeBuilder().uidsIncludelist(contactIds).parameters(params).toString();
neon.openContextWithRecipe("Organisation", "OrganisationFilter_view", neon.OPERATINGSTATE_SEARCH, recipe, null);
......@@ -13,7 +13,6 @@
</entityProvider>
<entityField>
<name>BASETEMPLATE</name>
<documentation>%aditoprj%/entity/BulkMailAddMosaico_entity/entityfields/basetemplate/documentation.adoc</documentation>
<title>Base Template</title>
<consumer>BaseTemplates</consumer>
<mandatory v="true" />
......
......@@ -140,7 +140,7 @@
<children>
<entityParameter>
<name>ObjectRowId_param</name>
<valueProcess>%aditoprj%/entity/BulkMailRecipient_entity/entityfields/emailadresses/children/contactid_param/valueProcess.js</valueProcess>
<valueProcess>%aditoprj%/entity/BulkMailRecipient_entity/entityfields/emailadresses/children/objectrowid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
......
import("system.result");
import("system.vars");
result.string(vars.get("$field.CONTACT_ID"));
import("system.neonFilter");
import("Util_lib");
import("system.entities");
import("Context_lib");
......@@ -28,7 +29,8 @@ rows = rows.map(function (row)
});
neon.openContext("MarketingWorkflowLauncher", "MarketingWorkflowLauncherEdit_view", null, neon.OPERATINGSTATE_VIEW, {
var recipe = neonFilter.createEntityRecordsRecipeBuilder().parameters({
"ObjectIds_param": JSON.stringify(rows),
"ObjectType_param": ContextUtils.getCurrentContextId()
});
\ No newline at end of file
}).toString();
neon.openContextWithRecipe("MarketingWorkflowLauncher", "MarketingWorkflowLauncherEdit_view", neon.OPERATINGSTATE_VIEW, recipe);
import("system.neonFilter");
import("system.neon");
import("system.vars")
......@@ -5,4 +6,5 @@ var params = {
"BulkMailId_param": vars.get("$field.BULKMAILID")
};
neon.openContext("BulkMailAddMosaico", "BulkMailAddMosaicoEdit_view",null, neon.OPERATINGSTATE_VIEW, params, null);
\ No newline at end of file
var recipe = neonFilter.createEntityRecordsRecipeBuilder().parameters(params).toString();
neon.openContextWithRecipe("BulkMailAddMosaico", "BulkMailAddMosaicoEdit_view", neon.OPERATINGSTATE_VIEW, recipe, null);
import("system.neonFilter");
import("system.workflow");
import("ActivityTask_lib");
import("Contact_lib");
......@@ -33,7 +34,8 @@ if(contactIds != null && contactIds.length > 0)
neon.refreshAll();
if (!vars.exists("$param.currentCampaignId_param") || !vars.get("$param.currentCampaignId_param"))
{
neon.openContext("Campaign", "CampaignMain_view", [campaignId], neon.OPERATINGSTATE_VIEW, null);
var recipe = neonFilter.createEntityRecordsRecipeBuilder().uidsIncludelist([campaignId]).toString();
neon.openContextWithRecipe("Campaign", "CampaignMain_view", neon.OPERATINGSTATE_VIEW, recipe);
}
else
{
......
import("Sql_lib");
import("system.result");
import("Communication_lib");
var res = CommUtil.getStandardSubSqlMail(newWhere("COMMUNICATION.OBJECT_ROWID = CAMPAIGNPARTICIPANT.CONTACT_ID"));
result.string(res);
\ No newline at end of file
import("system.result");
import("Communication_lib");
import("Sql_lib");
var res = CommUtil.getStandardSubSqlPhone(newWhere("COMMUNICATION.OBJECT_ROWID = CAMPAIGNPARTICIPANT.CONTACT_ID"));
result.string(res);
\ No newline at end of file
import("system.neonFilter");
import("system.vars");
import("system.neon");
neon.openContext("CampaignStep", "CampaignStepEdit_view", null, neon.OPERATINGSTATE_NEW, {
var recipe = neonFilter.createEntityRecordsRecipeBuilder().parameters({
campaignId_param: vars.get("$param.campaignId_param"),
predecessorstepId_param: vars.get("$field.CAMPAIGNSTEPID")
});
\ No newline at end of file
}).toString();
neon.openContextWithRecipe("CampaignStep", "CampaignStepEdit_view", neon.OPERATINGSTATE_NEW, recipe);
......@@ -38,7 +38,7 @@
<children>
<entityParameter>
<name>ObjectRowId_param</name>
<valueProcess>%aditoprj%/entity/CommunicationChannel_entity/entityfields/communications/children/contactid_param/valueProcess.js</valueProcess>
<valueProcess>%aditoprj%/entity/CommunicationChannel_entity/entityfields/communications/children/objectrowid_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>CommCategory_param</name>
......
import("system.vars");
import("system.result");
import("system.vars");
result.string(vars.get("$param.ContactId_param"));
\ No newline at end of file
result.string(vars.get("$param.ContactId_param"));
......@@ -108,7 +108,7 @@
<children>
<entityParameter>
<name>ObjectRowId_param</name>
<valueProcess>%aditoprj%/entity/Contact_entity/entityfields/communications/children/contactid_param/valueProcess.js</valueProcess>
<valueProcess>%aditoprj%/entity/Contact_entity/entityfields/communications/children/objectrowid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
......
import("system.vars");
import("system.result");
result.string(vars.get("$field.CONTACTID"));
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.get("$field.CONTACTID"));
\ No newline at end of file
result.string(vars.get("$field.CONTACTID"));
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