Skip to content
Snippets Groups Projects
Commit 052461a3 authored by Jessica Luginger's avatar Jessica Luginger
Browse files

[Projekt: xRM-Trade 2020][TicketNr.: 1069526][Gebiete und Strukturen "meine Gebiete"]

parent 0d449158
No related branches found
No related tags found
No related merge requests found
......@@ -317,6 +317,10 @@
</entityParameter>
</children>
</entityConsumer>
<entityParameter>
<name>ResponsibleDistrictsOfCurrentUser_param</name>
<expose v="true" />
</entityParameter>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("Employee_lib");
import("system.result");
import("system.vars");
import("Sql_lib");
var onlyResponsibleParam = vars.get("$param.DistrictsByContactId_param");
var responsibleDistrictsOfCurrentUser = vars.get("$param.ResponsibleDistrictsOfCurrentUser_param");
var onlyResponsibleParam;
if(responsibleDistrictsOfCurrentUser == "true")
{
onlyResponsibleParam = EmployeeUtils.getCurrentContactId();
}
else
{
onlyResponsibleParam = vars.get("$param.DistrictsByContactId_param");
}
var cond = newWhere();
if (onlyResponsibleParam)
{
......
......@@ -14,6 +14,12 @@
<title>District</title>
</neonDashletCategory>
</categories>
<parameters>
<neonDashletParameter>
<name>ResponsibleDistrictsOfCurrentUser_param</name>
<value>true</value>
</neonDashletParameter>
</parameters>
</neonDashletConfiguration>
</dashletConfigurations>
<layout>
......
......@@ -44,11 +44,6 @@
<entityField>#ENTITY</entityField>
<view>PersonAttributeRestriction_view</view>
</neonViewReference>
<neonViewReference>
<name>1f6cf193-61c3-4681-bafd-c7f9c906cdf6</name>
<entityField>Districts</entityField>
<view>DistrictList_view</view>
</neonViewReference>
<neonViewReference>
<name>19a5f9ed-228d-4352-9e82-e7aa690648e9</name>
<entityField>DistrictResponsibles</entityField>
......
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