Skip to content
Snippets Groups Projects
Commit 4af6aae6 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

displayvalue for contact_entity - Organisation

parent 68148f04
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@
<title>Company</title>
<consumer>Organisations</consumer>
<mandatory v="false" />
<displayValueProcess>%aditoprj%/entity/Contact_entity/entityfields/organisation_id/displayValueProcess.js</displayValueProcess>
<onValidation>%aditoprj%/entity/Contact_entity/entityfields/organisation_id/onValidation.js</onValidation>
</entityField>
<entityField>
......@@ -64,9 +65,6 @@
<fieldName>WithPersonIdFilter</fieldName>
</dependency>
<children>
<entityParameter>
<name>WithPrivate_param</name>
</entityParameter>
<entityParameter>
<name>ExcludeOrganisationsByPersonId</name>
<valueProcess>%aditoprj%/entity/Contact_entity/entityfields/organisations/children/excludeorganisationsbypersonid/valueProcess.js</valueProcess>
......@@ -299,6 +297,10 @@
<name>DATE_EDIT.value</name>
<recordfield>CONTACT.DATE_EDIT</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>ORGANISATION_ID.displayValue</name>
<recordfield>ORGANISATION.NAME</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
......
import("system.result");
import("system.db");
import("system.vars");
import("Contact_lib");
var organisationId = vars.get("$field.ORGANISATION_ID");
var res = OrganisationUtils.getNameByOrganisationId(organisationId);
result.string(res);
\ 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