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

Offer performance fixes

parent f23efa16
No related branches found
No related tags found
No related merge requests found
......@@ -199,6 +199,7 @@
<name>printOffer</name>
<title>Print Offer</title>
<onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/printoffer/onActionProcess.js</onActionProcess>
<isMenuAction v="false" />
<iconId>VAADIN:FILE_TEXT_O</iconId>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/printoffer/stateProcess.js</stateProcess>
</entityActionField>
......@@ -1085,6 +1086,10 @@
<name>CONTACT_PERSON_ID.displayValue</name>
<expression>%aditoprj%/entity/Offer_entity/recordcontainers/db/recordfieldmappings/contact_person_id.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CONTACT_ID.displayValue</name>
<expression>%aditoprj%/entity/Offer_entity/recordcontainers/db/recordfieldmappings/contact_id.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
<indexRecordContainer>
......
import("system.result");
import("system.vars");
import("Contact_lib");
import("system.neon");
import("system.result");
import("system.vars");
import("Contact_lib");
import("system.neon");
result.string(ContactUtils.getFullTitleByContactId(vars.getString("$field.CONTACT_ID")));
\ No newline at end of file
import("system.vars");
import("system.result");
import("Contact_lib");
result.string(ContactUtils.getContextByContactId(vars.getString("$field.CONTACT_ID")));
\ No newline at end of file
import("system.vars");
import("system.result");
import("Contact_lib");
result.string(ContactUtils.getContextByPersOrg(vars.get("$field.CONTACT_PERSON_ID"), vars.get("$field.CONTACT_ORG_ID")));
\ No newline at end of file
import("system.vars");
import("Contact_lib");
import("system.result");
var contact = Contact.createWithColumnPreset()
var renderer = new ContactTitleRenderer(contact, ContactTitleRenderer.OPTIONS.IncludeOrganisation);
result.string(renderer.asSql());
\ 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