Skip to content
Snippets Groups Projects
Commit 4fd205f0 authored by Daniel Tran's avatar Daniel Tran
Browse files

#1052905: Added state process to disable action for inactive contacts.

#1052905: Changed #IMAGE field to PICTURE field, in view.
parent 9208e19d
No related branches found
No related tags found
No related merge requests found
......@@ -1153,17 +1153,6 @@
<entityName>Person_entity</entityName>
<fieldName>SelfDuplicatesProvider</fieldName>
</dependency>
<children>
<entityParameter>
<name>OnlyShowContactIds_param</name>
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
</entityParameter>
<entityParameter>
<name>DuplicateActionsControl_param</name>
</entityParameter>
</children>
</entityConsumer>
<entityProvider>
<name>SelfDuplicatesProvider</name>
......@@ -1217,6 +1206,7 @@
<title>New Weekplanentry</title>
<onActionProcess>%aditoprj%/entity/Person_entity/entityfields/newvisitplanentry/onActionProcess.js</onActionProcess>
<iconId>VAADIN:CAR</iconId>
<stateProcess>%aditoprj%/entity/Person_entity/entityfields/newvisitplanentry/stateProcess.js</stateProcess>
</entityActionField>
<entityProvider>
<name>IdFilteredActiveContacts</name>
......
import("system.result");
import("system.neon");
import("system.vars");
import("KeywordRegistry_basic");
if (vars.get("$field.STATUS") == $KeywordRegistry.contactStatus$inactive())
result.string(neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
......@@ -19,8 +19,8 @@
<entityField>#ENTITY</entityField>
<columns>
<neonTableColumn>
<name>d6207ade-29e7-4af0-ba5f-e9ddd799de7b</name>
<entityField>#IMAGE</entityField>
<name>cb441e57-dba4-49d6-a8f4-cea5db3187f2</name>
<entityField>PICTURE</entityField>
</neonTableColumn>
<neonTableColumn>
<name>1053d3a7-c5ee-4260-86f6-54e820f53e9f</name>
......
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