Skip to content
Snippets Groups Projects
Commit a8f5f544 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

Merge branch 'sales_1082216_FixResolveCompetitionReasons' into '2021.2.0'

Sales 1082216 fix resolve competition reasons

See merge request xrm/basic!1284
parents 0acffcd7 b7df70e2
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@
<title>Reason</title>
<dropDownProcess>%aditoprj%/entity/Competition_entity/entityfields/reason/dropDownProcess.js</dropDownProcess>
<selectionMode>MULTI</selectionMode>
<displayValueProcess>%aditoprj%/entity/Competition_entity/entityfields/reason/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>COMPETITIONID</name>
......
import("KeywordRegistry_basic");
import("Keyword_lib");
import("system.result");
import("system.vars");
import("system.text");
var reasonViewValue = [];
var reasons = text.decodeMs(vars.get("$field.REASON"));
var reasonObject = vars.get("$property.REASON.dropDown");
reasons.forEach(function(reason)
{
reasonViewValue.push(reasonObject[reason]);
})
result.string(reasonViewValue.join(", "));
\ 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