Skip to content
Snippets Groups Projects
Commit dbf7accb authored by S.Listl's avatar S.Listl
Browse files

EmployeeRole Role target context

parent c1d5a568
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,8 @@
</entityParameter>
<entityProvider>
<name>EmployeeRoles</name>
<targetContextField>TARGETCONTEXT</targetContextField>
<targetIdField>UID</targetIdField>
<dependencies>
<entityDependency>
<name>3bcec57a-7165-4773-9253-5ecab26ee3f4</name>
......@@ -57,6 +59,9 @@
</entityParameter>
</children>
</entityConsumer>
<entityField>
<name>TARGETCONTEXT</name>
</entityField>
</entityFields>
<recordContainers>
<jDitoRecordContainer>
......@@ -76,6 +81,9 @@
<jDitoRecordFieldMapping>
<name>ROLE.displayValue</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>TARGETCONTEXT.value</name>
</jDitoRecordFieldMapping>
</recordFieldMappings>
</jDitoRecordContainer>
</recordContainers>
......
......@@ -16,7 +16,8 @@ if (userTitle && tools.existUsers(userTitle))
var roleTitle = role;
if (role in allRoles)
roleTitle = allRoles[role][0];
roles.push([role, role, roleTitle]);
roles.push([role, role, roleTitle, "Role"]);
this[role] = true;
}
}, existsObj);
......
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